Skip to content

Commit f53f8d0

Browse files
authored
Update Toolbar.css
1 parent 9dd7691 commit f53f8d0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Toolbar.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88
width: 4em;
99
}
1010

11-
/* Portrait layout (mobile) */
12-
@media (max-aspect-ratio: 1) {
11+
@media (orientation: portrait) {
1312
max-width: 50%;
1413
h2 {
1514
text-overflow: ellipsis;
1615
overflow: hidden;
1716
}
1817
}
1918

20-
/* Landscape layout (laptop / tablet ) */
21-
@media (min-aspect-ratio: 1) {
19+
@media (orientation: landscape) {
2220
max-height: 50%;
2321
h2 {
2422
text-overflow: ellipsis;
@@ -27,4 +25,4 @@
2725
text-orientation: mixed;
2826
}
2927
}
30-
}
28+
}

0 commit comments

Comments
 (0)