Ver Fonte

fix search result img overflow

Abhinav há 3 anos atrás
pai
commit
c012bd5ea8
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      src/components/Collections/styledComponents.ts

+ 2 - 3
src/components/Collections/styledComponents.ts

@@ -33,11 +33,10 @@ export const CollectionTile = styled.div`
     border-radius: 4px;
     user-select: none;
     cursor: pointer;
-    background-size: cover;
     & > img {
         object-fit: cover;
-        max-width: 100%;
-        min-height: 100%;
+        width: 100%;
+        height: 100%;
         flex: 1;
         pointer-events: none;
     }