Make sure modal always fits inside the screen

This commit is contained in:
Paul Kaplan 2021-05-13 09:22:50 -04:00
parent 231fba944a
commit a190424f7e

View file

@ -22,11 +22,14 @@
.user-projects-modal-content {
padding: 0 30px 30px;
background: #E9F1FC;
max-height: 80vh;
max-height: calc(100vh - 200px);
overflow-y: auto;
overscroll-behavior: contain;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
@media #{$intermediate-and-smaller} {
& { max-height: calc(100vh - 105px); }
}
}
}