From a507799b804805a4f3ead34bdb68c3d6cdaa7eb9 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 11 Jun 2026 01:07:00 +0000 Subject: [PATCH] Fix mobile admin nav bar hidden behind main navbar - Reposition admin mobile bar from top-0/z-10 to top-16/z-40 so it sits below the main Navbar instead of behind it - Make Sheet controlled so the drawer closes when a nav link is tapped - Pass onNavigate callback to AdminNavLinks to close Sheet on navigation https://claude.ai/code/session_01F7rJW6gpaXMiSF3wQYrmhC --- app/routes/admin.tsx | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/app/routes/admin.tsx b/app/routes/admin.tsx index 3cef405..16df021 100644 --- a/app/routes/admin.tsx +++ b/app/routes/admin.tsx @@ -1,3 +1,4 @@ +import { useState } from "react"; import { Link, Outlet, redirect } from "react-router"; import { auth } from "~/lib/auth.server"; import type { Route } from "./+types/admin"; @@ -44,59 +45,59 @@ export async function loader(args: Route.LoaderArgs) { return { isAdmin }; } -function AdminNavLinks() { +function AdminNavLinks({ onNavigate }: { onNavigate?: () => void }) { return ( <> - - - - - - - -
-