🎨 styles: img common in product cart

:%s
This commit is contained in:
lytrankieio123 2021-09-14 10:52:58 +07:00
parent 20d6ebf24c
commit faf0bc1e35
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -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}>