diff --git a/app/components/Navbar.tsx b/app/components/Navbar.tsx index efa1b60..86e431d 100644 --- a/app/components/Navbar.tsx +++ b/app/components/Navbar.tsx @@ -3,6 +3,7 @@ import { useWallet } from "@/app/context/WalletContext"; import { useIsAdmin } from "@/app/hooks/useIsAdmin"; import { SUPPORTED_WALLETS } from "@/app/context/WalletContext"; import Link from "next/link"; +import WalletBadge from "./WalletBadge"; export default function Navbar() { const { @@ -16,8 +17,6 @@ export default function Navbar() { } = useWallet(); const { isAdminUser } = useIsAdmin(address); - const short = (addr: string) => `${addr.slice(0, 4)}...${addr.slice(-4)}`; - const focusRing = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-400 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-950 rounded"; @@ -31,18 +30,30 @@ export default function Navbar() { ⚠️ {networkMismatchMessage} )} + {/* + * `relative z-10` establishes a stacking context so the nav sits above + * non-overlay page content on mobile. Full-screen overlays (LedgerLoaderOverlay, + * WalletLoaderOverlay) intentionally use z-50 and will still cover the nav + * correctly during wallet operations. + */}