Skip to content

Commit

Permalink
aspect ratio nft cards (#235)
Browse files Browse the repository at this point in the history
No longer blur, just a square
  • Loading branch information
wraeth-eth authored Nov 23, 2023
1 parent d7013a2 commit 7f2772c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/Project/components/RewardImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ export const RewardImage: React.FC<RewardImageProps> = ({
alt,
}) => {
return (
<div
className={twMerge(
'relative h-72 w-full overflow-hidden bg-gray-100',
className,
)}
>
<Image className="object-cover" fill src={src} alt={alt} />
<div className={twMerge('relative h-72 w-full overflow-hidden', className)}>
<Image className="object-contain" fill src={src} alt={alt} />
</div>
)
}

0 comments on commit 7f2772c

Please sign in to comment.