fix: keep route overflow out of the page body (#785)

This commit is contained in:
Thomas Durieux
2026-08-20 14:52:45 +02:00
committed by GitHub
parent adb0dcaec2
commit 74ed0c6d51
4 changed files with 13 additions and 5 deletions
+10 -2
View File
@@ -158,8 +158,16 @@ body {
overflow-x: hidden;
}
/* Prevent ng-view from scrolling horizontally */
[ng-view] {
body {
overflow-y: hidden;
}
/* Angular removes the ng-view attribute after compiling the route. Target the
element so it remains the scroll container below the fixed-height header. */
ng-view {
display: block;
flex: 1 1 auto;
min-height: 0;
overflow-x: hidden !important;
overflow-y: auto !important;
max-width: 100%;