From a190424f7e95eb7bea5338ddc33f355199f6310c Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Thu, 13 May 2021 09:22:50 -0400 Subject: [PATCH] Make sure modal always fits inside the screen --- src/views/studio/modals/user-projects-modal.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/studio/modals/user-projects-modal.scss b/src/views/studio/modals/user-projects-modal.scss index 66aaeab4d..3530aa73f 100644 --- a/src/views/studio/modals/user-projects-modal.scss +++ b/src/views/studio/modals/user-projects-modal.scss @@ -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); } + } } }