From f03eb0226941d6cd5f902cc7bf72ce8a10ebbfc9 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Thu, 16 Aug 2018 00:19:36 +0800 Subject: [PATCH] Keep height of modal, dialog within screen height --- app/assets/stylesheets/darkswarm/modals.css.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/darkswarm/modals.css.scss b/app/assets/stylesheets/darkswarm/modals.css.scss index 300e769f01..30b66eeb2b 100644 --- a/app/assets/stylesheets/darkswarm/modals.css.scss +++ b/app/assets/stylesheets/darkswarm/modals.css.scss @@ -21,9 +21,10 @@ dialog // Small - when modal IS full screen @media only screen and (max-width: 640px) { height: 500px; + left: 0; + max-height: 100%; position: absolute !important; top: 0; - left: 0; } // Medium and up - when modal IS NOT full screen