From 6e55e5b1c7039fbc3e00d02ea738f0705916a0a7 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Wed, 15 Aug 2018 03:03:03 +0800 Subject: [PATCH] Use maximum of 80% for modals in large screens When there is enough content in the modal, the height of the modal plus its top margin could exceed the height of the viewport. Considering a top position of 10%, a max height of 80% renders a tall modal vertically centered, with 10% remaining space at the bottom. --- app/assets/stylesheets/darkswarm/modals.css.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/darkswarm/modals.css.scss b/app/assets/stylesheets/darkswarm/modals.css.scss index 538a5622ed..300e769f01 100644 --- a/app/assets/stylesheets/darkswarm/modals.css.scss +++ b/app/assets/stylesheets/darkswarm/modals.css.scss @@ -29,7 +29,7 @@ dialog // Medium and up - when modal IS NOT full screen @media only screen and (min-width: 641px) { top: 10%; - max-height: 100%; + max-height: 80%; } }