Fix iOS safe area: header respects notch, chart respects home indicator
- viewport-fit=cover enables safe area insets in Safari - Header: pt-[max(0.5rem,env(safe-area-inset-top))] clears the notch - Elevation chart: pb-[max(0.5rem,env(safe-area-inset-bottom))] clears the home indicator bar Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
66885c82f2
commit
ca48284252
3 changed files with 3 additions and 3 deletions
|
|
@ -223,7 +223,7 @@ export function SessionView({ sessionId, callbackUrl, callbackToken, returnUrl,
|
|||
|
||||
return (
|
||||
<>
|
||||
<header className="flex flex-wrap items-center justify-between gap-2 border-b border-gray-200 px-4 py-2">
|
||||
<header className="flex flex-wrap items-center justify-between gap-2 border-b border-gray-200 px-4 py-2 pt-[max(0.5rem,env(safe-area-inset-top))]">
|
||||
<div className="flex items-center gap-2 md:gap-4">
|
||||
<Link to="/" className="hidden text-lg font-semibold text-gray-900 hover:text-blue-600 sm:block">
|
||||
{t("title")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue