From 7a11137aed9ae802069316556a6d8d9dc65eb314 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Sat, 27 Sep 2025 15:54:30 -0700 Subject: [PATCH] save nav padding for terminal --- src/components/Shakespeare/PreviewPane.tsx | 2 +- src/index.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index 478a1bf3..03783f08 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -750,7 +750,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o variant="outline" size="sm" onClick={() => setMobileCodeView('terminal')} - className="fixed bottom-12 right-4 h-12 w-12 p-0 rounded-full shadow-lg bg-background border-2" + className="fixed right-4 bottom-safe-nav z-20 h-12 w-12 p-0 rounded-full shadow-lg bg-background border-2" > diff --git a/src/index.css b/src/index.css index 3fd0e105..b09c5aa2 100644 --- a/src/index.css +++ b/src/index.css @@ -260,6 +260,10 @@ padding-top: env(safe-area-inset-top); } + .bottom-safe-nav { + bottom: calc(env(safe-area-inset-bottom) + 3.75rem); + } + /* Mobile navigation button styles - text/icon highlighting only */ .mobile-nav-button, .mobile-nav-button:hover,