From 2396eaab4d31636ada3cee2eb5239e20be544b21 Mon Sep 17 00:00:00 2001 From: Paperclip Date: Sun, 12 Apr 2026 02:07:04 +0000 Subject: [PATCH] fix(GRO-564): wrap admin nav links in scrollable div to prevent logout overflow - Add flexShrink:0 to logo div to prevent shrinking - Wrap Book + NAV_LINKS in scrollable div with overflow-x:auto, flex:1, minWidth:0 - Add flexShrink:0 to all nav links - Move logout button outside scrollable div with flexShrink:0 instead of marginLeft:auto - Keeps logout button always visible regardless of nav item count Co-Authored-By: Paperclip --- apps/web/src/App.tsx | 90 ++++++++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 40 deletions(-) diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 11a436c..28bde7c 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -210,6 +210,7 @@ function AdminLayout() { alignItems: "center", gap: 8, marginRight: "1.25rem", + flexShrink: 0, }}> {logoSrc && ( @@ -223,52 +224,61 @@ function AdminLayout() { - - Book - - {NAV_LINKS.map(({ to, label }) => { - const active = - to === "/admin" - ? location.pathname === "/admin" - : location.pathname.startsWith(to); - return ( - - {label} - - ); - })} +
+ + Book + + {NAV_LINKS.map(({ to, label }) => { + const active = + to === "/admin" + ? location.pathname === "/admin" + : location.pathname.startsWith(to); + return ( + + {label} + + ); + })} +