fix(app): always apply safe area insets (#33619)

This commit is contained in:
Brendan Allan
2026-06-24 18:21:52 +08:00
committed by GitHub
parent 36697b06fa
commit 5c7866cc78
3 changed files with 14 additions and 7 deletions
+7 -1
View File
@@ -32,7 +32,13 @@ export default function NewLayout(props: ParentProps) {
}
return (
<div class="relative bg-v2-background-bg-deep flex-1 min-h-0 min-w-0 flex flex-col select-none [&_input]:select-text [&_textarea]:select-text [&_[contenteditable]]:select-text">
<div
class="relative bg-v2-background-bg-deep flex-1 min-h-0 min-w-0 flex flex-col select-none [&_input]:select-text [&_textarea]:select-text [&_[contenteditable]]:select-text"
style={{
"padding-top": "env(safe-area-inset-top, 0px)",
"padding-bottom": "env(safe-area-inset-bottom, 0px)",
}}
>
<Titlebar update={update} />
<main class="flex-1 min-h-0 min-w-0 overflow-x-hidden flex flex-col items-start contain-strict">
<Suspense>{props.children}</Suspense>