From 78fc5fa58fbaf42c17d7f0ea274d6aada7170641 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 10 Nov 2023 07:21:55 +0000 Subject: [PATCH] fix: Added ws role icon in ws menu --- packages/nc-gui/store/sidebar.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/nc-gui/store/sidebar.ts b/packages/nc-gui/store/sidebar.ts index 9bad365ce1..7f0e5ee2bd 100644 --- a/packages/nc-gui/store/sidebar.ts +++ b/packages/nc-gui/store/sidebar.ts @@ -42,6 +42,16 @@ export const useSidebarStore = defineStore('sidebarStore', () => { 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 { isLeftSidebarOpen, isRightSidebarOpen, @@ -50,6 +60,7 @@ export const useSidebarStore = defineStore('sidebarStore', () => { leftSidebarState, leftSidebarWidth, mobileNormalizedSidebarSize, + nonHiddenLeftSidebarWidth, } })