From 5bf58499ea9129bff371146fe8224cf8bcc8fd60 Mon Sep 17 00:00:00 2001 From: SkateSpots Date: Tue, 29 Sep 2026 17:05:20 +0700 Subject: [PATCH] ui(map): float the mobile toolbar so the map fills the screen Mobile map was paying for a stacked toolbar under the header, leaving the map ~78% of the viewport. - MapPage: the toolbar is absolute over the map on mobile (gradient fade, pointer-events pass-through) and static on desktop (md:static); controls get translucent/blurred backgrounds for legibility over the map. - Container height now subtracts header + bottom nav only (desktop footer subtraction removed); Layout hides the desktop footer on full-bleed routes. - Loading pill / offline banner nudged below the floating bar on mobile. Measured at 390x844 (headless): map starts under the header and fills 730px = 86.5% of the viewport (was ~78%). --- src/components/Layout.tsx | 2 +- src/pages/MapPage.tsx | 23 +++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index ad41172..f00f1ab 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1051,7 +1051,7 @@ export function Layout({ children, noPadding }: LayoutProps) { {/* Footer - Desktop */} -