Browse Source

fix: Added ws role icon in ws menu

pull/6932/head
Muhammed Mustafa 1 year ago
parent
commit
78fc5fa58f
  1. 11
      packages/nc-gui/store/sidebar.ts

11
packages/nc-gui/store/sidebar.ts

@ -42,6 +42,16 @@ export const useSidebarStore = defineStore('sidebarStore', () => {
const leftSidebarWidth = computed(() => (width.value * mobileNormalizedSidebarSize.value) / 100) const leftSidebarWidth = computed(() => (width.value * mobileNormalizedSidebarSize.value) / 100)
const nonHiddenMobileSidebarSize = computed(() => {
if (isMobileMode.value) {
return 100
}
return leftSideBarSize.value.current ?? leftSideBarSize.value.old
})
const nonHiddenLeftSidebarWidth = computed(() => (width.value * nonHiddenMobileSidebarSize.value) / 100)
return { return {
isLeftSidebarOpen, isLeftSidebarOpen,
isRightSidebarOpen, isRightSidebarOpen,
@ -50,6 +60,7 @@ export const useSidebarStore = defineStore('sidebarStore', () => {
leftSidebarState, leftSidebarState,
leftSidebarWidth, leftSidebarWidth,
mobileNormalizedSidebarSize, mobileNormalizedSidebarSize,
nonHiddenLeftSidebarWidth,
} }
}) })

Loading…
Cancel
Save