fix: move safe-area padding to shell container
Addresses Codex review feedback - applying safe-area padding to body while body has height:100% + overflow:hidden clips the bottom. Now applies safe-area insets to .shell container with adjusted height calc to prevent clipping.
This commit is contained in:
parent
7186600608
commit
e8cfafc4da
@ -197,15 +197,6 @@ body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* iOS safe area support */
|
||||
@supports (padding: env(safe-area-inset-top)) {
|
||||
body {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
padding-left: env(safe-area-inset-left);
|
||||
padding-right: env(safe-area-inset-right);
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font: 400 14px/1.55 var(--font-body);
|
||||
|
||||
@ -4,6 +4,17 @@
|
||||
|
||||
/* Tablet: Horizontal nav - sticky header */
|
||||
@media (max-width: 1100px) {
|
||||
/* iOS safe area support - apply to shell container */
|
||||
@supports (padding: env(safe-area-inset-top)) {
|
||||
.shell {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
padding-left: env(safe-area-inset-left);
|
||||
padding-right: env(safe-area-inset-right);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
||||
}
|
||||
}
|
||||
|
||||
/* Keep topbar sticky on mobile */
|
||||
.topbar {
|
||||
position: sticky;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user