From bf98dbd40aedf3d74604d02f7b8f978f88872d4e Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Tue, 10 Feb 2026 00:50:43 -0800 Subject: [PATCH] Fix mobile drawer: move outside header for iOS, fix overlay positioning - Move overlay and drawer nav outside
to avoid iOS Safari backdrop-filter breaking fixed positioning - Overlay starts below header (top-12) instead of covering full screen so header stays clean when drawer is open - Add invisible class when drawer closed as fallback - Remove auto-focus on first link to prevent focus ring flash --- web/app/components/mobile-drawer.tsx | 3 +- web/app/components/site-header.tsx | 96 ++++++++++++++-------------- 2 files changed, 49 insertions(+), 50 deletions(-) diff --git a/web/app/components/mobile-drawer.tsx b/web/app/components/mobile-drawer.tsx index 982461e8..9392b786 100644 --- a/web/app/components/mobile-drawer.tsx +++ b/web/app/components/mobile-drawer.tsx @@ -34,7 +34,6 @@ export function useMobileDrawer() { if (focusable.length === 0) return; const first = focusable[0]; const last = focusable[focusable.length - 1]; - first.focus(); const trap = (e: KeyboardEvent) => { if (e.key !== "Tab") return; if (e.shiftKey) { @@ -71,7 +70,7 @@ export function MobileDrawerOverlay({ open, onClose }: { open: boolean; onClose: if (!open) return null; return ( -
+ ); }