소스 검색

fix search result img overflow

Abhinav 3 년 전
부모
커밋
c012bd5ea8
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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;
     }