diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-16 14:03:41 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-16 14:03:41 +0700 |
| commit | dd5aec9566205c7fefec9c0cdbd04b0f8ecb67d0 (patch) | |
| tree | ffb171f3e386df224400a5477afa589372add54e /src/lib | |
| parent | 0f26d4f8edb2c3f24f4d85425910427e4d91f237 (diff) | |
fixing layout
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/home/components/CategoryHomeId.jsx | 2 | ||||
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/home/components/CategoryHomeId.jsx b/src/lib/home/components/CategoryHomeId.jsx index c37a6af7..4899f216 100644 --- a/src/lib/home/components/CategoryHomeId.jsx +++ b/src/lib/home/components/CategoryHomeId.jsx @@ -6,7 +6,7 @@ const CategoryHomeId = () => { const { categoryHomeIds } = useCategoryHomeId() return ( - <div className='flex flex-col gap-y-6'> + <div className='flex flex-col gap-y-10'> {categoryHomeIds.data?.map((id) => ( <LazyLoadComponent key={id}> <CategoryHome id={id} /> diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index 9a5fe9a2..8b48cf06 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -36,7 +36,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { product?.manufacture?.name, product?.manufacture.id )} - className='mb-1 font-normal' + className='mb-1' > {product.manufacture.name} </Link> @@ -45,7 +45,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { )} <Link href={createSlug('/shop/product/', product?.name, product?.id)} - className={`font-normal mb-2 !text-gray_r-12 leading-6 block ${ + className={`mb-2 !text-gray_r-12 leading-6 block ${ simpleTitle ? 'line-clamp-2 h-12' : 'line-clamp-3 h-[64px]' }`} title={product?.name} @@ -108,7 +108,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { product?.manufacture?.name, product?.manufacture.id )} - className='mb-1 font-normal' + className='mb-1' > {product.manufacture.name} </Link> @@ -117,7 +117,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { )} <Link href={createSlug('/shop/product/', product?.name, product?.id)} - className={`font-normal mb-2 !text-gray_r-12 ${ + className={`mb-2 !text-gray_r-12 leading-6 ${ simpleTitle ? 'line-clamp-2' : 'line-clamp-3' }`} > |
