fix(dashboard): reserve iOS PWA status-bar inset on mobile modal headers

The black-translucent status bar overlays the page in iOS standalone PWAs,
clipping close buttons in full-screen mobile modals and the QuickChatFAB
panel. Add `padding-top: env(safe-area-inset-top, …)` so headers render
below the status bar.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-27 05:17:32 -07:00
parent b3700e6e6d
commit fce1755d2b
2 changed files with 6 additions and 0 deletions

View File

@@ -397,6 +397,9 @@
.quick-chat-panel-header {
flex-wrap: wrap;
row-gap: var(--space-sm);
/* iOS PWA: status bar (black-translucent) overlays the panel from top: 0,
clipping the close button. Reserve top inset on mobile. */
padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.quick-chat-panel-header-actions {

View File

@@ -2768,6 +2768,9 @@ input[type="range"]:focus-visible {
max-height: 100dvh;
border-radius: 0;
border: none;
/* iOS PWA status bar (black-translucent) overlays content; reserve top
inset so headers / close buttons aren't clipped behind it. */
padding-top: env(safe-area-inset-top, 0px);
padding-bottom: env(safe-area-inset-bottom, 0px);
}