From a665386f05601b1bec5208535dcc7b4bfd5603b8 Mon Sep 17 00:00:00 2001 From: weishu Date: Sun, 21 Dec 2025 18:39:50 +0800 Subject: [PATCH] fix(web): add safe-area-inset-top padding to prevent statusbar overlap on iOS PWA This fixes an issue where viewport-fit=cover and black-translucent statusbar configuration allowed content to extend under the iOS statusbar. Added env(safe-area-inset-top) CSS handling to all main layout components: - SessionHeader with pt-[env(safe-area-inset-top)] - SessionsPage, MachinesPage, SpawnPage with safe-area padding - FilesPage and FilePage headers with safe-area padding --- web/src/components/SessionHeader.tsx | 2 +- web/src/router.tsx | 6 +++--- web/src/routes/sessions/file.tsx | 2 +- web/src/routes/sessions/files.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/components/SessionHeader.tsx b/web/src/components/SessionHeader.tsx index 0b37879c..b0198b0d 100644 --- a/web/src/components/SessionHeader.tsx +++ b/web/src/components/SessionHeader.tsx @@ -49,7 +49,7 @@ export function SessionHeader(props: { } return ( -
+
{/* Back button */}