Browse Source

only set Dashboard min-height on mobile

Artur Paikin 6 years ago
parent
commit
14135f5f2e
1 changed files with 7 additions and 2 deletions
  1. 7 2
      packages/@uppy/dashboard/src/style.scss

+ 7 - 2
packages/@uppy/dashboard/src/style.scss

@@ -116,19 +116,24 @@
   max-width: 100%; /* no !important */
   max-height: 100%; /* no !important */
   // min-width: 290px;
+  // min-height: 450px is required for everything to fit on mobile
   min-height: 450px;
   outline: none;
   border: 1px solid rgba($color-gray, 0.2);
   border-radius: 5px;
 
-  .uppy-Dashboard--modal & {
-    z-index: $zIndex-3;
+  .uppy-size--md & {
+    min-height: auto;
   }
 
   @media #{$screen-medium} {
     width: 750px; /* no !important */
     height: 550px; /* no !important */
   }
+
+  .uppy-Dashboard--modal & {
+    z-index: $zIndex-3;
+  }
 }
 
 .uppy-Dashboard-innerWrap {