summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-28 09:07:51 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-28 09:07:51 +0700
commite3ac82b208312c52835ecd73e03beecd9137b55e (patch)
tree16d913da0fbca4b82e9c02e1973ae555bd59bf9a /src/lib
parent3722093f3a84c7b6700da06b3e176cdca4a22b26 (diff)
<iman> update font style
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/product/components/ProductCard.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 35e2a665..c5e82c82 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -128,7 +128,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
width={13}
height={5}
/>
- <span className='text-white text-[9px] md:text-[10px] font-semibold'>
+ <span className='text-white text-[9px] md:text-[10px] text-nowrap font-semibold'>
{product?.flashSale?.tag != 'false' ||
product?.flashSale?.tag
? product?.flashSale?.tag
@@ -218,11 +218,11 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
<div className='flex w-full items-center gap-x-1 '>
{product?.stockTotal > 0 && (
- <div className='badge-solid-red'>Ready Stock</div>
+ <div className='badge-solid-red text-nowrap'>Ready Stock</div>
)}
{/* <div className='badge-gray'>{product?.stockTotal > 5 ? '> 5' : '< 5'}</div> */}
{product?.qtySold > 0 && (
- <div className='text-gray_r-9 text-[11px]'>
+ <div className='text-gray_r-9 text-[11px] text-nowrap truncate'>
{sellingProductFormat(product?.qtySold) + ' Terjual'}
</div>
)}