diff --git a/packages/nc-gui/components/smartsheet/Toolbar.vue b/packages/nc-gui/components/smartsheet/Toolbar.vue index 356c95486a..e72673ea85 100644 --- a/packages/nc-gui/components/smartsheet/Toolbar.vue +++ b/packages/nc-gui/components/smartsheet/Toolbar.vue @@ -18,12 +18,29 @@ const { isViewsLoading } = storeToRefs(useViewsStore()) const { isMobileMode } = useGlobal() +const containerRef = ref() + +const isTab = ref(true) + +const handleResize = () => { + isTab.value = containerRef.value.offsetWidth > 810 +} + +onMounted(() => { + window.addEventListener('resize', handleResize) +}) + +onUnmounted(() => { + window.removeEventListener('resize', handleResize) +}) + const { allowCSVDownload } = useSharedView()