Skip to content

Commit cade211

Browse files
authored
Merge pull request #2346 from dewanshDT/dewanshmobile/overlayscss
Mobile overlay fix: works on smaller devices
2 parents d2f5832 + 65f8ad7 commit cade211

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

client/styles/components/_overlay.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,22 @@
2323
flex-wrap: wrap;
2424
flex-flow: column;
2525
max-height: 80%;
26+
max-width: 80%;
2627
position: relative;
2728
padding-bottom: #{25 / $base-font-size}rem;
29+
30+
@media (max-width: 650px) {
31+
max-width: 100%;
32+
max-height: 100%;
33+
height: 100vh;
34+
width: 100vw;
35+
}
2836
}
2937

3038
.overlay__header {
3139
display: flex;
3240
justify-content: space-between;
3341
padding: #{20 / $base-font-size}rem;
34-
flex: 1 0 auto;
3542
}
3643

3744
.overlay__actions {
@@ -49,10 +56,9 @@
4956

5057
/* Fixed height overlay */
5158
.overlay--is-fixed-height .overlay__body {
52-
height: 80vh;
59+
height: 100vh;
5360
}
5461

5562
.overlay--is-fixed-height .overlay__header {
5663
flex: 0;
5764
}
58-

0 commit comments

Comments
 (0)