mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
Make sure modal always fits inside the screen
This commit is contained in:
parent
231fba944a
commit
a190424f7e
1 changed files with 4 additions and 1 deletions
|
@ -22,11 +22,14 @@
|
||||||
.user-projects-modal-content {
|
.user-projects-modal-content {
|
||||||
padding: 0 30px 30px;
|
padding: 0 30px 30px;
|
||||||
background: #E9F1FC;
|
background: #E9F1FC;
|
||||||
max-height: 80vh;
|
max-height: calc(100vh - 200px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
border-bottom-left-radius: 12px;
|
border-bottom-left-radius: 12px;
|
||||||
border-bottom-right-radius: 12px;
|
border-bottom-right-radius: 12px;
|
||||||
|
@media #{$intermediate-and-smaller} {
|
||||||
|
& { max-height: calc(100vh - 105px); }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue