diff --git a/src/App.vue b/src/App.vue index 5a361a9..ba8e6be 100644 --- a/src/App.vue +++ b/src/App.vue @@ -60,7 +60,7 @@ const router = useRouter() // Mobile detection - reactive with resize listener const windowWidth = ref(typeof window !== 'undefined' ? window.innerWidth : 1024) -const isMobile = computed(() => windowWidth.value < 768) +const isMobile = computed(() => windowWidth.value <= 768) const handleResize = () => { windowWidth.value = window.innerWidth diff --git a/src/modules/reports/views/DashboardView.vue b/src/modules/reports/views/DashboardView.vue index 7c04308..e9120dd 100644 --- a/src/modules/reports/views/DashboardView.vue +++ b/src/modules/reports/views/DashboardView.vue @@ -757,7 +757,7 @@ const bancaPreviousSparkline = computed(() => { // Detectare mobile - reactive with resize listener const windowWidth = ref(window.innerWidth); -const isMobile = computed(() => windowWidth.value < 768); +const isMobile = computed(() => windowWidth.value <= 768); const dashboardTitle = computed(() => { const company = companyStore.selectedCompany?.name; diff --git a/src/modules/reports/views/DetailedInvoicesView.vue b/src/modules/reports/views/DetailedInvoicesView.vue index 8ac93b7..fbfe454 100644 --- a/src/modules/reports/views/DetailedInvoicesView.vue +++ b/src/modules/reports/views/DetailedInvoicesView.vue @@ -492,7 +492,7 @@ const switchTab = async (tab) => { // Mobile detection const windowWidth = ref(window.innerWidth) -const isMobile = computed(() => windowWidth.value < 768) +const isMobile = computed(() => windowWidth.value <= 768) const handleResize = () => { windowWidth.value = window.innerWidth diff --git a/src/modules/reports/views/MaturityAnalysisView.vue b/src/modules/reports/views/MaturityAnalysisView.vue index 4a77b96..1d0e846 100644 --- a/src/modules/reports/views/MaturityAnalysisView.vue +++ b/src/modules/reports/views/MaturityAnalysisView.vue @@ -125,7 +125,7 @@ const showDrawer = ref(false) // Detectare mobile - reactive with resize listener const windowWidth = ref(window.innerWidth) -const isMobile = computed(() => windowWidth.value < 768) +const isMobile = computed(() => windowWidth.value <= 768) // Ref to MaturityAnalysisCard const maturityCardRef = ref(null) diff --git a/src/modules/reports/views/SettingsHubView.vue b/src/modules/reports/views/SettingsHubView.vue index fe64eac..a916d25 100644 --- a/src/modules/reports/views/SettingsHubView.vue +++ b/src/modules/reports/views/SettingsHubView.vue @@ -104,7 +104,7 @@ const showDrawer = ref(false) // Detectare mobile - reactive with resize listener const windowWidth = ref(window.innerWidth) -const isMobile = computed(() => windowWidth.value < 768) +const isMobile = computed(() => windowWidth.value <= 768) // Handle window resize for mobile detection const handleResize = () => {