Skip to content

Commit c638e20

Browse files
authored
fix(sidenav): use vw instead of percentage for sidenav min width (#3046)
1 parent 6bac315 commit c638e20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/demo-app/demo-app/demo-app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body {
99
}
1010

1111
.mat-sidenav {
12-
min-width: 15%;
12+
min-width: 15vw;
1313

1414
.mat-button {
1515
width: 100%;

src/lib/sidenav/sidenav.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
top: 0;
9999
bottom: 0;
100100
z-index: 3;
101-
min-width: 5%;
101+
min-width: 5vw;
102102
outline: 0;
103103

104104
@include mat-sidenav-transition(0, -100%);

0 commit comments

Comments
 (0)