fix: compensate 100dvh layouts for the env banner's height

Shell and the public pages commit to exactly one viewport tall; without
this, the new dev-environment banner would push their bottom edge (and
Shell's bottom nav) past the visible viewport, the same overflow-leak
bug fixed earlier today.
This commit is contained in:
Bastian Wagner
2026-08-05 12:40:22 +02:00
parent c441140872
commit 91808a63f5
3 changed files with 25 additions and 7 deletions

View File

@@ -1,9 +1,12 @@
:host {
display: block;
min-height: 100%;
display: flex;
flex-direction: column;
height: calc(100dvh - var(--env-banner-height, 0px));
overflow: hidden;
// background: color-mix(in srgb, var(--mat-sys-primary-container) 18%, var(--mat-sys-surface));
}
.public-header {
flex-shrink: 0;
height: 64px;
padding: 0 max(20px, calc((100vw - 900px) / 2));
display: flex;
@@ -22,6 +25,11 @@
font-size: 1.1rem;
}
main {
flex: 1;
min-height: 0;
overflow-y: auto;
}
.page {
max-width: 900px;
margin: 0 auto;
padding: 28px 24px 64px;
@@ -86,7 +94,7 @@ main {
color: var(--mat-sys-on-surface-variant);
}
@media (max-width: 600px) {
main {
.page {
padding: 22px 16px 48px;
}
}