style(design): FINDING-005 — fix tablet 1px gap where no header shows
At exactly 768px, CSS hides desktop header (max-width: 768px) but JS isMobile used < 768 (strict), so MobileTopBar didn't show either. Fix: change < 768 to <= 768 across all 5 views (App, Dashboard, MaturityAnalysis, SettingsHub, DetailedInvoices). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,7 @@ const router = useRouter()
|
|||||||
|
|
||||||
// Mobile detection - reactive with resize listener
|
// Mobile detection - reactive with resize listener
|
||||||
const windowWidth = ref(typeof window !== 'undefined' ? window.innerWidth : 1024)
|
const windowWidth = ref(typeof window !== 'undefined' ? window.innerWidth : 1024)
|
||||||
const isMobile = computed(() => windowWidth.value < 768)
|
const isMobile = computed(() => windowWidth.value <= 768)
|
||||||
|
|
||||||
const handleResize = () => {
|
const handleResize = () => {
|
||||||
windowWidth.value = window.innerWidth
|
windowWidth.value = window.innerWidth
|
||||||
|
|||||||
@@ -757,7 +757,7 @@ const bancaPreviousSparkline = computed(() => {
|
|||||||
|
|
||||||
// Detectare mobile - reactive with resize listener
|
// Detectare mobile - reactive with resize listener
|
||||||
const windowWidth = ref(window.innerWidth);
|
const windowWidth = ref(window.innerWidth);
|
||||||
const isMobile = computed(() => windowWidth.value < 768);
|
const isMobile = computed(() => windowWidth.value <= 768);
|
||||||
|
|
||||||
const dashboardTitle = computed(() => {
|
const dashboardTitle = computed(() => {
|
||||||
const company = companyStore.selectedCompany?.name;
|
const company = companyStore.selectedCompany?.name;
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ const switchTab = async (tab) => {
|
|||||||
|
|
||||||
// Mobile detection
|
// Mobile detection
|
||||||
const windowWidth = ref(window.innerWidth)
|
const windowWidth = ref(window.innerWidth)
|
||||||
const isMobile = computed(() => windowWidth.value < 768)
|
const isMobile = computed(() => windowWidth.value <= 768)
|
||||||
|
|
||||||
const handleResize = () => {
|
const handleResize = () => {
|
||||||
windowWidth.value = window.innerWidth
|
windowWidth.value = window.innerWidth
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ const showDrawer = ref(false)
|
|||||||
|
|
||||||
// Detectare mobile - reactive with resize listener
|
// Detectare mobile - reactive with resize listener
|
||||||
const windowWidth = ref(window.innerWidth)
|
const windowWidth = ref(window.innerWidth)
|
||||||
const isMobile = computed(() => windowWidth.value < 768)
|
const isMobile = computed(() => windowWidth.value <= 768)
|
||||||
|
|
||||||
// Ref to MaturityAnalysisCard
|
// Ref to MaturityAnalysisCard
|
||||||
const maturityCardRef = ref(null)
|
const maturityCardRef = ref(null)
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ const showDrawer = ref(false)
|
|||||||
|
|
||||||
// Detectare mobile - reactive with resize listener
|
// Detectare mobile - reactive with resize listener
|
||||||
const windowWidth = ref(window.innerWidth)
|
const windowWidth = ref(window.innerWidth)
|
||||||
const isMobile = computed(() => windowWidth.value < 768)
|
const isMobile = computed(() => windowWidth.value <= 768)
|
||||||
|
|
||||||
// Handle window resize for mobile detection
|
// Handle window resize for mobile detection
|
||||||
const handleResize = () => {
|
const handleResize = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user