mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Min images
This commit is contained in:
@@ -125,15 +125,11 @@
|
||||
}
|
||||
|
||||
.imageContainer {
|
||||
& > div {
|
||||
& > div {
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
overflow: hidden;
|
||||
@apply flex items-center justify-center;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
height: 120% !important;
|
||||
top: -10% !important;
|
||||
.image {
|
||||
object-fit: cover;
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
@@ -51,8 +51,8 @@ const ProductCard: FC<Props> = ({
|
||||
width={imgWidth}
|
||||
height={imgHeight}
|
||||
priority={priority}
|
||||
quality="85"
|
||||
layout={imgLayout}
|
||||
quality="85"
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
@@ -73,8 +73,8 @@ const ProductCard: FC<Props> = ({
|
||||
</div>
|
||||
<div className={s.imageContainer}>
|
||||
<Image
|
||||
className={s.image}
|
||||
alt={p.name}
|
||||
className={cn('w-full object-cover', s['product-image'])}
|
||||
src={src}
|
||||
width={imgWidth}
|
||||
height={imgHeight}
|
||||
|
Reference in New Issue
Block a user