Skip to content

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

UX: fallback max-height for modal style (#29321)

Krisfa4256551516
diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss
index a83f5731184..a57a5ffe986 100644
--- a/app/assets/stylesheets/common/base/modal.scss
+++ b/app/assets/stylesheets/common/base/modal.scss
@@ -26,9 +26,9 @@
pointer-events: auto;
box-sizing: border-box;
margin: 0 auto;
- max-height: 80vh;
background-color: var(--secondary);
box-shadow: var(--shadow-modal);
+ max-height: var(--modal-max-height, 80vh); // unset, optional theme utility
}
&__header {
diff --git a/app/assets/stylesheets/desktop/modal.scss b/app/assets/stylesheets/desktop/modal.scss
index f4a4b5333a9..491de3e4cdb 100644
--- a/app/assets/stylesheets/desktop/modal.scss
+++ b/app/assets/stylesheets/desktop/modal.scss
@@ -5,9 +5,7 @@
&__container {
max-width: var(--modal-max-width);
min-width: var(--modal-min-width);
- // height values add optional theme utility
- max-height: var(--modal-max-height);
- min-height: var(--modal-min-height);
+ min-height: var(--modal-min-height); // unset, optional theme utility
.d-modal.-large & {
max-width: 800px;
}