Browse Source

fix search result img overflow

Abhinav 3 years ago
parent
commit
c012bd5ea8
1 changed files with 2 additions and 3 deletions
  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;
     border-radius: 4px;
     user-select: none;
     user-select: none;
     cursor: pointer;
     cursor: pointer;
-    background-size: cover;
     & > img {
     & > img {
         object-fit: cover;
         object-fit: cover;
-        max-width: 100%;
-        min-height: 100%;
+        width: 100%;
+        height: 100%;
         flex: 1;
         flex: 1;
         pointer-events: none;
         pointer-events: none;
     }
     }