From 12419d7a0d450129ba0c57a344aa66bca3ce4fb5 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Thu, 28 Sep 2023 04:27:00 +0000 Subject: [PATCH] fix: Fixed View style for mobile view --- packages/nc-gui/components/dashboard/Sidebar.vue | 6 +++++- packages/nc-gui/components/dashboard/Sidebar/TopSection.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/dashboard/Sidebar.vue b/packages/nc-gui/components/dashboard/Sidebar.vue index b136179044..3e1b806ba4 100644 --- a/packages/nc-gui/components/dashboard/Sidebar.vue +++ b/packages/nc-gui/components/dashboard/Sidebar.vue @@ -5,11 +5,15 @@ const { isWorkspaceLoading } = storeToRefs(workspaceStore) const { isSharedBase } = storeToRefs(useProject()) +const { isMobileMode } = useGlobal() + const treeViewDom = ref() const isTreeViewOnScrollTop = ref(false) const checkScrollTopMoreThanZero = () => { + if (isMobileMode.value) return + if (treeViewDom.value) { if (treeViewDom.value.scrollTop > 0) { isTreeViewOnScrollTop.value = true @@ -43,7 +47,7 @@ onUnmounted(() => {
-
+