From ae9c49b7b2ec7898d6983b9a57e09ec639f56483 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Tue, 10 Oct 2023 13:29:49 +0000 Subject: [PATCH] fix(nc-gui): Fixed sidebar hidden issue --- packages/nc-gui/components/dashboard/View.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/nc-gui/components/dashboard/View.vue b/packages/nc-gui/components/dashboard/View.vue index cafb2c3af2..5e43b9c6b3 100644 --- a/packages/nc-gui/components/dashboard/View.vue +++ b/packages/nc-gui/components/dashboard/View.vue @@ -111,6 +111,14 @@ watch(isMobileMode, () => { isLeftSidebarOpen.value = !isMobileMode.value }) +watch(sidebarState, () => { + if (sidebarState.value === 'peekCloseEnd') { + setTimeout(() => { + sidebarState.value = 'hiddenEnd' + }, animationDuration) + } +}) + onMounted(() => { handleSidebarOpenOnMobileForNonViews() })