fix(layout): honour the safe area, since the viewport asks to cover it #159
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web#159
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
src/layouts/base.astro:81setsviewport-fit=cover, but nothing insrc/style/**,src/components/**orsrc/layouts/**referencesenv(safe-area-inset-*)— grep returns nothing.--page-marginis 24 px (src/style/variables.scss:238). The safe-area inset on a notched iPhonein landscape is around 44 px, so the first main-navigation link, the language switcher and the
footer's first column sit partly under the notch or a rounded corner. In portrait the footer's last
row sits under the home indicator.
viewport-fit=coveris only correct when paired with the insets.Fix
Add
padding-inline: env(safe-area-inset-left) env(safe-area-inset-right)andpadding-block-end: env(safe-area-inset-bottom)to.site-header,.site-footerand.page-content, behind@supports (padding: env(safe-area-inset-left)). Insets are0on deviceswithout a notch, so this is inert everywhere else.
Done when
clipped by the notch or a rounded corner.
Part of gitborg/gitborg-docs#67.
supernaut refererade till detta ärende från bitborg/bitborg-docs2026-08-02 12:32:47 +00:00