From ca4b41193dd61fb88f95fd53d1dd423ad178b025 Mon Sep 17 00:00:00 2001 From: Daniel Spaude Date: Sun, 1 Jan 2023 22:08:53 +0100 Subject: [PATCH] mobile optimisations - fix tab issue --- packages/nc-gui/components/smartsheet/sidebar/index.vue | 4 +++- packages/nc-gui/components/tabs/Smartsheet.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/sidebar/index.vue b/packages/nc-gui/components/smartsheet/sidebar/index.vue index 457e5ee74b..29b3eb6bcd 100644 --- a/packages/nc-gui/components/smartsheet/sidebar/index.vue +++ b/packages/nc-gui/components/smartsheet/sidebar/index.vue @@ -35,6 +35,8 @@ const setLastOpenedViewId = (viewId?: string) => { const { isUIAllowed } = useUIPermission() +const { isMobileMode } = useGlobal() + const router = useRouter() const route = useRoute() @@ -44,7 +46,7 @@ const { $e } = useNuxtApp() /** Sidebar visible */ const { isOpen } = useSidebar('nc-right-sidebar') -const sidebarCollapsed = computed(() => !isOpen.value) +const sidebarCollapsed = computed(() => !isOpen.value || isMobileMode.value) /** Sidebar ref */ const sidebar = ref() diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vue index 0830203a27..936d7733da 100644 --- a/packages/nc-gui/components/tabs/Smartsheet.vue +++ b/packages/nc-gui/components/tabs/Smartsheet.vue @@ -92,7 +92,7 @@ provide( - +