From cc0a9b0468f31f2330a0261e9c453ec4a61916a5 Mon Sep 17 00:00:00 2001 From: Sergey Kintsel Date: Mon, 19 Aug 2024 10:34:30 +0100 Subject: [PATCH] Fix image cropping in NFT drawer --- .../NFTs/NFTDrawerCard/NFTDrawerCard.tsx | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/apps/web/src/views/NFTs/NFTDrawerCard/NFTDrawerCard.tsx b/apps/web/src/views/NFTs/NFTDrawerCard/NFTDrawerCard.tsx index 1695f3fb3f..38aa9767f0 100644 --- a/apps/web/src/views/NFTs/NFTDrawerCard/NFTDrawerCard.tsx +++ b/apps/web/src/views/NFTs/NFTDrawerCard/NFTDrawerCard.tsx @@ -1,14 +1,4 @@ -import { - AspectRatio, - Button, - Card, - CardBody, - Flex, - Heading, - Image, - Square, - Text, -} from "@chakra-ui/react"; +import { Button, Card, CardBody, Flex, Heading, Image, Square, Text } from "@chakra-ui/react"; import { useDynamicModalContext } from "@umami/components"; import { type NFTBalance, artifactUri, mimeType, tokenName } from "@umami/core"; import { getIPFSurl } from "@umami/tezos"; @@ -33,26 +23,30 @@ export const NFTDrawerCard = ({ nft }: { nft: NFTBalance }) => { return ( - + {isVideo ? ( ) : ( - - - + )}