|
|
|
@ -6,7 +6,7 @@ export const useSidebarStore = defineStore('sidebarStore', () => {
|
|
|
|
|
const isViewPortMobile = () => { |
|
|
|
|
return width.value < MAX_WIDTH_FOR_MOBILE_MODE |
|
|
|
|
} |
|
|
|
|
const { isMobileMode, leftSidebarSize: _leftSidebarSize, setLeftSidebarSize } = useGlobal() |
|
|
|
|
const { isMobileMode, leftSidebarSize: _leftSidebarSize } = useGlobal() |
|
|
|
|
|
|
|
|
|
const tablesStore = useTablesStore() |
|
|
|
|
const _isLeftSidebarOpen = ref(!isViewPortMobile()) |
|
|
|
@ -22,8 +22,8 @@ export const useSidebarStore = defineStore('sidebarStore', () => {
|
|
|
|
|
const isRightSidebarOpen = ref(true) |
|
|
|
|
|
|
|
|
|
const leftSideBarSize = ref({ |
|
|
|
|
old: _leftSidebarSize.value ?? INITIAL_LEFT_SIDEBAR_WIDTH, |
|
|
|
|
current: isViewPortMobile() ? 0 : _leftSidebarSize.value ?? INITIAL_LEFT_SIDEBAR_WIDTH, |
|
|
|
|
old: _leftSidebarSize.value?.old ?? INITIAL_LEFT_SIDEBAR_WIDTH, |
|
|
|
|
current: isViewPortMobile() ? 0 : _leftSidebarSize.value?.current ?? INITIAL_LEFT_SIDEBAR_WIDTH, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const leftSidebarWidthPercent = ref((leftSideBarSize.value.current / width.value) * 100) |
|
|
|
|