Skip to content

Commit 4a13ff2

Browse files
arpljavivelasco
authored andcommitted
Fix media queries panel height calculations (react-toolbox#1467)
1 parent d6bdf20 commit 4a13ff2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/layout/theme.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,23 @@
7070
}
7171

7272
& .panel {
73+
height: calc(100vh - var(--appbar-height));
74+
max-height: calc(100vh - var(--appbar-height));
7375
top: var(--appbar-height);
7476

7577
&:not(.bodyScroll) {
76-
height: calc(100vh - var(--appbar-height));
77-
max-height: calc(100vh - var(--appbar-height));
7878
overflow-y: scroll;
7979
}
8080

8181
@media screen and (--xxs-viewport) and (--portrait) {
82+
height: calc(100vh - var(--appbar-height-m-portrait));
83+
max-height: calc(100vh - var(--appbar-height-m-portrait));
8284
top: var(--appbar-height-m-portrait);
8385
}
8486

8587
@media screen and (--xs-viewport) and (--landscape) {
88+
height: calc(100vh - var(--appbar-height-m-landscape));
89+
max-height: calc(100vh - var(--appbar-height-m-landscape));
8690
top: var(--appbar-height-m-landscape);
8791
}
8892
}

0 commit comments

Comments
 (0)