fix: resolve title overlap and expand short description display in FeaturedProducts cards
This commit is contained in:
1 parent
a92b1a61ff
commit
8d3a0bfafb
1 file changed
+3
-3
@@ -86,14 +86,14 @@ function ProductCard({ product, onClick }: { product: Product; key?: string | nu
|
||||
|
||||
{/* Content Area */}
|
||||
<div className="p-8 flex flex-col flex-1" onClick={() => router.push(`/shop/${product.slug || product.id}`)}>
|
||||
<div className="flex items-start justify-between mb-4 gap-2">
|
||||
<h3 dir="ltr" className="text-base md:text-lg font-black text-medical-gray-900 group-hover:text-canina-blue transition-colors leading-tight text-left line-clamp-2 flex-1 min-h-[3rem]">
|
||||
<div className="flex items-start justify-between mb-3 gap-2">
|
||||
<h3 dir="ltr" className="text-base md:text-lg font-black text-medical-gray-900 group-hover:text-canina-blue transition-colors leading-normal text-left line-clamp-2 min-h-[3.5rem]">
|
||||
{product.name}
|
||||
</h3>
|
||||
<ShieldCheck className="w-6 h-6 text-canina-blue flex-shrink-0" />
|
||||
</div>
|
||||
|
||||
<p className="text-sm text-medical-gray-500 leading-relaxed mb-6 flex-1 line-clamp-2">
|
||||
<p className="text-sm text-medical-gray-500 leading-relaxed mb-6 line-clamp-3 min-h-[4.5rem]">
|
||||
{product.shortDescription || product.description}
|
||||
</p>
|
||||
|
||||
|
||||
Reference in new issue
Block a user