From 0744e700223d6591b068a45f9c6baf6ca7773c5c Mon Sep 17 00:00:00 2001 From: Kris Date: Thu, 3 Oct 2019 13:16:28 -0400 Subject: [PATCH] UX: restrict tall modal height to viewport % --- app/assets/stylesheets/common/base/modal.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss index d03345f56d3..52722452159 100644 --- a/app/assets/stylesheets/common/base/modal.scss +++ b/app/assets/stylesheets/common/base/modal.scss @@ -143,7 +143,10 @@ &:not(.history-modal) { .modal-body:not(.reorder-categories):not(.poll-ui-builder) { - max-height: none !important; + max-height: 80vh !important; + @media screen and (max-height: 500px) { + max-height: 65vh !important; + } } } }