Skip to content

Commit 56385b2

Browse files
committed
fix(demo): fixed navigation scrolling on small screens
1 parent 6bd24ce commit 56385b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/elements-demo/src/app/core/layout/navigation/navigation.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ mat-nav-list {
1010
padding-top: 0;
1111
position: fixed;
1212
top: 64px;
13+
max-height: calc(100% - 64px);
14+
overflow-y: auto;
15+
overflow-x: hidden;
1316
}
1417

1518
a[mat-list-item] {
@@ -32,5 +35,6 @@ a[mat-list-item] {
3235
:host-context(.responsive) {
3336
mat-nav-list {
3437
top: 56px;
38+
max-height: calc(100% - 56px);
3539
}
3640
}

0 commit comments

Comments
 (0)