From 1efce9eb00a2f43e0ba18b486ea492135c782ea1 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 a74f9693dbc..145cdc7e6f2 100644 --- a/app/assets/stylesheets/darkswarm/modals.css.scss +++ b/app/assets/stylesheets/darkswarm/modals.css.scss @@ -20,9 +20,10 @@ dialog, .reveal-modal { // 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