From 1a9c8b960fc95c059dbae888687246ceaf66811e Mon Sep 17 00:00:00 2001 From: fairlight <31534717+fairlighteth@users.noreply.github.com> Date: Tue, 7 Nov 2023 16:42:49 +0000 Subject: [PATCH] chore: fix token symbol crop image (#3358) Co-authored-by: Anxo Rodriguez --- libs/tokens/src/pure/TokenLogo/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/tokens/src/pure/TokenLogo/index.tsx b/libs/tokens/src/pure/TokenLogo/index.tsx index cc6173ecec..ed236b3718 100644 --- a/libs/tokens/src/pure/TokenLogo/index.tsx +++ b/libs/tokens/src/pure/TokenLogo/index.tsx @@ -22,8 +22,8 @@ const TokenLogoWrapper = styled.div<{ size?: number }>` overflow: hidden; img { - width: ${({ size }) => size}px; - height: ${({ size }) => size}px; + width: 100%; + height: 100%; border-radius: ${({ size }) => size}px; object-fit: contain; } @@ -62,7 +62,7 @@ export function TokenLogo({ logoURI, token, className, size = 36 }: TokenLogoPro return ( - {!currentUrl ? : } + {!currentUrl ? : token logo} ) }