forked from crowetic/commerce
fix the scale
This commit is contained in:
parent
ef406cfaf6
commit
a0720a2ee9
@ -6,6 +6,10 @@
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
& .product-image {
|
||||
@apply scale-90;
|
||||
}
|
||||
|
||||
& .productTitle > span,
|
||||
& .productPrice,
|
||||
& .wishlistButton {
|
||||
@ -37,6 +41,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
& .product-image {
|
||||
@apply transform transition-transform duration-500;
|
||||
}
|
||||
|
||||
&:nth-child(6n + 1) .squareBg {
|
||||
@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">
|
||||
<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}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user