From 7f26bebc8dd98fba495f0b278caf811ed712d936 Mon Sep 17 00:00:00 2001 From: Chad Curtis Date: Tue, 3 Mar 2026 01:17:03 -0600 Subject: [PATCH] fix(fab): use fixed positioning so FAB hovers above nav bar regardless of scroll --- src/components/MainLayout.tsx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/MainLayout.tsx b/src/components/MainLayout.tsx index 3bba1595..c95c1247 100644 --- a/src/components/MainLayout.tsx +++ b/src/components/MainLayout.tsx @@ -88,24 +88,28 @@ function MainLayoutInner() { {/* Main content + right sidebar: inside Suspense so the left sidebar persists while lazy pages load */} }> - {/* Wrap the center column in a relative container for the FAB */}
- {showFAB && ( -
-
- -
-
- )}
{rightSidebar ?? }
+ {/* FAB — fixed above the mobile nav bar, centered on the content column */} + {showFAB && ( +
+ {/* Constrain to center column width so it aligns with content */} +
+
+ +
+
+
+ )} + {/* Mobile bottom nav - only on small screens */}