mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
fix cropped images
This commit is contained in:
parent
17767624ce
commit
7b1fa570b5
@ -120,3 +120,15 @@
|
||||
.wishlistButton {
|
||||
@apply w-10 h-10 flex ml-auto items-center justify-center bg-primary text-base font-semibold inline-block text-xs leading-6 cursor-pointer;
|
||||
}
|
||||
|
||||
.imageContainer {
|
||||
@apply absolute z-10 inset-0 flex items-center justify-center;
|
||||
|
||||
& > div {
|
||||
@apply h-full;
|
||||
& > div {
|
||||
@apply h-full;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ const ProductCard: FC<Props> = ({
|
||||
<Heart />
|
||||
</div>
|
||||
</div>
|
||||
<div className="absolute z-10 inset-0 flex items-center justify-center">
|
||||
<div className={cn(s.imageContainer)}>
|
||||
<Image
|
||||
className={cn('w-full object-cover', s['product-image'])}
|
||||
src={src}
|
||||
|
Loading…
x
Reference in New Issue
Block a user