diff --git a/Resources/Scripts/styles/browser.css b/Resources/Scripts/styles/browser.css
index 4d0a629b..afb62216 100644
--- a/Resources/Scripts/styles/browser.css
+++ b/Resources/Scripts/styles/browser.css
@@ -248,17 +248,21 @@ a[data-full-url] {
 /* Fix modal dialogs breaking when window size is too small */
 /************************************************************/
 
+.ovl:before, .overlay:before {
+  display: none !important;
+}
+
 .ovl, .overlay {
   flex-direction: column;
   justify-content: center;
 }
 
-.ovl[style="display: block;"], .overlay {
+.ovl[style="display: block;"] {
   display: flex !important;
 }
 
-.overlay:before, .ovl:before {
-  display: none !important;
+.overlay {
+  display: flex;
 }
 
 /*******************************************/