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,