mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 04:14:18 +00:00
🎨 styles: img common in product cart
:%s
This commit is contained in:
parent
20d6ebf24c
commit
faf0bc1e35
@ -16,6 +16,12 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
@apply flex justify-center items-center;
|
||||
> div {
|
||||
min-height: 13rem;
|
||||
img {
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
img {
|
||||
@apply inline;
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ import React from 'react'
|
||||
import { IconBuy } from 'src/components/icons'
|
||||
import { ROUTE } from 'src/utils/constanst.utils'
|
||||
import { ProductProps } from 'src/utils/types.utils'
|
||||
import { ImgWithLink } from '..'
|
||||
import ButtonCommon from '../ButtonCommon/ButtonCommon'
|
||||
import ButtonIconBuy from '../ButtonIconBuy/ButtonIconBuy'
|
||||
import ItemWishList from '../ItemWishList/ItemWishList'
|
||||
@ -37,7 +38,7 @@ const ProductCard = ({
|
||||
<div className={s.cardTop}>
|
||||
<Link href={`${ROUTE.PRODUCT_DETAIL}/test`}>
|
||||
<div className={s.productImage}>
|
||||
<img src={imageSrc} alt="image" />
|
||||
<ImgWithLink src={imageSrc} alt={name}/>
|
||||
</div>
|
||||
</Link>
|
||||
<div className={s.productLabel}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user