summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-15 15:31:48 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-15 15:31:48 +0700
commit5dc2b929b87da305352d746638cb3d655242096f (patch)
tree6b907b2c3916443a1aee54b2782d0b2de03eb012
parent4f5208d1da03f8925807c28cebf3188e7ec29570 (diff)
<Miqdad> line clamp
-rw-r--r--src/lib/product/components/ProductCard.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 0ec2a1e6..0eae23de 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -412,8 +412,14 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
<Link
href={URL.product}
aria-label={product?.name}
- className={`!text-gray_r-12 leading-6 block line-clamp-3 mb-1`}
+ className='block mb-1 leading-6 !text-gray_r-12'
title={product?.name}
+ style={{
+ display: '-webkit-box',
+ WebkitLineClamp: 2,
+ WebkitBoxOrient: 'vertical',
+ overflow: 'hidden',
+ }}
>
{product?.name}
</Link>