Skip to content

A platform for community discussion. Free, open, simple.

UX: restrict tall modal height to viewport %

Kris0744e700223d
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;
+ }
}
}
}