Skip to content

Commit cb7afdb

Browse files
committed
overlays-overflow-fix
1 parent 279364f commit cb7afdb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

client/styles/components/_overlay.scss

Lines changed: 8 additions & 2 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 {
@@ -55,4 +62,3 @@
5562
.overlay--is-fixed-height .overlay__header {
5663
flex: 0;
5764
}
58-

0 commit comments

Comments
 (0)