From 29bf62001ac7eddcb0d7daf5990eaea66cd75ce0 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Mon, 13 Jun 2022 17:57:06 +0530 Subject: [PATCH] fix search result img overflow --- src/components/Collections/styledComponents.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Collections/styledComponents.ts b/src/components/Collections/styledComponents.ts index c02df7cd4..43eb1bda9 100644 --- a/src/components/Collections/styledComponents.ts +++ b/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; }