Forráskód Böngészése

Fix image size for smaller images in grid layout; also make sure checkbox never shrinks (#1897)

Artur Paikin 5 éve
szülő
commit
3d2d23092a

+ 2 - 0
packages/@uppy/provider-views/src/style/uppy-ProviderBrowser-viewType--grid.scss

@@ -57,6 +57,8 @@
     right: 7px;
     bottom: 7px;
     text-align: center;
+    width: calc(100% - 14px);
+    height: calc(100% - 14px);
     &:focus {
       outline: none;
       box-shadow: 0 0 0 3px rgba($blue, 0.9);

+ 1 - 0
packages/@uppy/provider-views/src/style/uppy-ProviderBrowserItem-fakeCheckbox.scss

@@ -1,6 +1,7 @@
 .uppy-ProviderBrowserItem-fakeCheckbox {
   position: relative;
   cursor: pointer;
+  flex-shrink: 0;
 
   // Checkmark icon
   &::after {