diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 848e5b49f..325b0e997 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -155,7 +155,7 @@ onMounted(() => { quasar.platform.is.mobile && !$props.disableOption?.card ? CARD_MODE : $props.defaultMode; - stateStore.rightDrawer = true; + stateStore.rightDrawer = quasar.screen.gt.xs; columnsVisibilitySkipped.value = [ ...splittedColumns.value.columns .filter((c) => c.visible == false) diff --git a/src/components/common/VnSectionMain.vue b/src/components/common/VnSectionMain.vue index 9975b1011..15be6ad9a 100644 --- a/src/components/common/VnSectionMain.vue +++ b/src/components/common/VnSectionMain.vue @@ -2,6 +2,7 @@ import { useStateStore } from 'stores/useStateStore'; import LeftMenu from 'components/LeftMenu.vue'; import { onMounted } from 'vue'; +import { useQuasar } from 'quasar'; const stateStore = useStateStore(); const $props = defineProps({ @@ -10,7 +11,9 @@ const $props = defineProps({ default: true, }, }); -onMounted(() => (stateStore.leftDrawer = $props.leftDrawer)); +onMounted( + () => (stateStore.leftDrawer = useQuasar().screen.gt.xs ? $props.leftDrawer : false) +);