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