mirror of
https://github.com/vercel/commerce.git
synced 2025-05-01 07:17:51 +00:00
fix the scale
This commit is contained in:
parent
ef406cfaf6
commit
a0720a2ee9
@ -6,6 +6,10 @@
|
|||||||
transform: scale(1.05);
|
transform: scale(1.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& .product-image {
|
||||||
|
@apply scale-90;
|
||||||
|
}
|
||||||
|
|
||||||
& .productTitle > span,
|
& .productTitle > span,
|
||||||
& .productPrice,
|
& .productPrice,
|
||||||
& .wishlistButton {
|
& .wishlistButton {
|
||||||
@ -37,6 +41,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& .product-image {
|
||||||
|
@apply transform transition-transform duration-500;
|
||||||
|
}
|
||||||
|
|
||||||
&:nth-child(6n + 1) .squareBg {
|
&:nth-child(6n + 1) .squareBg {
|
||||||
@apply bg-violet;
|
@apply bg-violet;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ const ProductCard: FC<Props> = ({ className, product: p, variant }) => {
|
|||||||
>
|
>
|
||||||
<div className="absolute z-10 inset-0 flex items-center justify-center">
|
<div className="absolute z-10 inset-0 flex items-center justify-center">
|
||||||
<img
|
<img
|
||||||
className="w-full object-cover transform hover:scale-90 transition-transform duration-500"
|
className={cn('w-full object-cover', s['product-image'])}
|
||||||
src={p.images.edges?.[0]?.node.urlXL}
|
src={p.images.edges?.[0]?.node.urlXL}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user