From d6f4576105d7032f687ecae931ad15f3cafb320b Mon Sep 17 00:00:00 2001 From: nmemmert Date: Fri, 16 Jan 2026 11:14:29 -0500 Subject: [PATCH] Fix safe area insets for iPhone using CSS custom properties --- src/app/globals.css | 1 + src/app/page.tsx | 2 +- src/components/BottomNav.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 72dcc6c..69cb15e 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -3,6 +3,7 @@ :root { --background: #ffffff; --foreground: #171717; + --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px); } @theme inline { diff --git a/src/app/page.tsx b/src/app/page.tsx index 03c1e07..846f44d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -219,7 +219,7 @@ export default function Home() { } return ( -
+
diff --git a/src/components/BottomNav.tsx b/src/components/BottomNav.tsx index 29fbc0e..32b60e2 100644 --- a/src/components/BottomNav.tsx +++ b/src/components/BottomNav.tsx @@ -24,7 +24,7 @@ export default function BottomNav({ activeTab, onTabChange }: BottomNavProps) { return ( <> {/* Mobile Bottom Navigation */} -