fix: use percentage heights instead of 100vh to fix status bar visibility in native app

With titleBarStyle: "Overlay" in Tauri, 100vh in WKWebView includes the
overlaid title bar area, making the app-shell taller than the visible
viewport. The 30px StatusBar (including the Commit button) was pushed
below the visible area and clipped by overflow:hidden. Using height:100%
chains from html→body→#root→app-shell to correctly constrain to the
visible viewport.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-04-02 09:45:10 +02:00
parent a353509038
commit c64a3e5d52
2 changed files with 8 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
.app-shell {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
height: 100%;
width: 100%;
overflow: hidden;
box-shadow: inset 0 0 0 1px var(--border-primary);
}

View File

@@ -143,9 +143,13 @@
padding: 0;
overflow: hidden;
}
html, body {
height: 100%;
width: 100%;
}
#root {
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
}
}