From f2c9c3d118b69c345090f652ef91e867424622ad Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 23 Jul 2026 23:28:55 +0700 Subject: [PATCH] fix(map): FABs bottom-4 inside map container, icon-only circles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Root cause: map container is already clipped to exclude bottom nav (h-[calc(100dvh-var(--header-mobile)-var(--bottom-nav))]) so bottom-[calc(5rem+...)] was pushing buttons ~80px up inside the clipped box — wrong and covered filter pills - Both FABs and right-side pills now use bottom-4 (16px from container edge) - FABs redesigned as clean 48×48 icon-only circles, no text labels: red circle (+) → Add Spot green circle (+) → Add Shop thick Plus strokeWidth=3, high-contrast (black on green, white on red) - Only shown when user is logged in (no logged-out ghost button) Co-authored-by: shakespeare.diy --- src/pages/MapPage.tsx | 66 ++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/src/pages/MapPage.tsx b/src/pages/MapPage.tsx index a4cf2a8..015241d 100644 --- a/src/pages/MapPage.tsx +++ b/src/pages/MapPage.tsx @@ -1421,40 +1421,36 @@ export default function MapPage() { )} - {/* Add Spot + Add Shop FABs — always visible, bottom-left, clear of bottom nav */} -
- {user ? ( - <> - {/* Add Shop — green */} - - - - {/* Add Spot — red */} - - - - - ) : ( - - )} -
+ {/* Add Spot + Add Shop FABs — bottom-left, 16px from bottom of map container + The map container already excludes the bottom nav height, so bottom-4 is correct. + Hidden when overlays open. */} + {user && ( +
+ {/* Add Shop — green circle */} + + + + {/* Add Spot — red circle */} + + + +
+ )} {/* Near Me button + attribution — floating top-right, hidden when any overlay is open */}