fix(portal-admin): html/body overflow-y hidden as a shell shield
CI / commits (pull_request) Successful in 3m54s
CI / scan (pull_request) Successful in 3m57s
CI / check (pull_request) Successful in 4m27s
CI / a11y (pull_request) Successful in 2m21s
CI / perf (pull_request) Successful in 5m57s

The admin shell is a "fills 100vh, never scrolls the body" layout —
<app-root> is height: 100vh and <main> owns its own overflow-y. If
anything ever pushes content past the viewport (a chart sizing
escape, a future iframe, a flex bug), we'd rather clip at the root
than show a phantom body scrollbar plus the empty space under the
footer that comes with it.
This commit is contained in:
Julien Gautier
2026-05-17 01:39:32 +02:00
parent 9e7eb4af15
commit e531ca5e24
+15
View File
@@ -16,3 +16,18 @@
/* Brand palette tokens — shared with portal-shell. */
@import '../../../libs/shared/tokens/src/brand-tokens.css';
/*
* The admin shell is a "fills the viewport, never scrolls the body"
* layout: <app-root> is locked at height: 100vh, and <main> owns its
* own overflow-y. If anything inside the shell ever pushes content
* past the viewport (a wide chart, a flex sizing bug, a third-party
* iframe), we'd rather clip than show a phantom body scrollbar plus
* the empty space below the footer that comes with it. The element-
* level overflow on <main> still produces a real, scrollable region
* for content that overflows by design.
*/
html,
body {
overflow-y: hidden;
}