Skip to content

Commit d46d5fa

Browse files
Zeff01claude
andcommitted
fix: adjust hero card text spacing and font sizes to prevent ellipsis
- Reduce gap between title and description from gap-3 to gap-1 for tighter spacing - Decrease description font size from text-sm/text-base to text-xs/text-sm - Reduce title min-height from 3.5rem to 3rem for better space utilization - Remove line-clamp-4 to allow full description text without ellipsis - Improve text readability while ensuring all content fits within card bounds 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fd3e082 commit d46d5fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/codebility/app/(marketing)/_components/landing/LandingHeroCard.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const HeroCard: React.FC<HeroCardProps> = ({ title, description, url = "#", cate
7676
/>
7777

7878
<motion.div
79-
className="flex w-full flex-col gap-3 relative z-10 flex-shrink-0"
79+
className="flex w-full flex-col gap-1 relative z-10 flex-shrink-0"
8080
initial={{ opacity: 0, y: 20 }}
8181
animate={{ opacity: 1, y: 0 }}
8282
transition={{ duration: 0.5, delay: 0.2 }}
@@ -95,7 +95,7 @@ const HeroCard: React.FC<HeroCardProps> = ({ title, description, url = "#", cate
9595
</motion.p>
9696
)}
9797
<motion.h3
98-
className="text-lg font-semibold leading-tight sm:text-xl line-clamp-2 min-h-[3.5rem] flex items-start"
98+
className="text-lg font-semibold leading-tight sm:text-xl min-h-[3rem] flex items-start"
9999
initial={{ opacity: 0, y: 10 }}
100100
animate={{ opacity: 1, y: 0 }}
101101
transition={{ duration: 0.5, delay: 0.4 }}
@@ -106,7 +106,7 @@ const HeroCard: React.FC<HeroCardProps> = ({ title, description, url = "#", cate
106106

107107
<div className="flex-1 flex items-end">
108108
<motion.p
109-
className="text-sm leading-relaxed text-white/80 sm:text-base line-clamp-4 relative z-10 w-full"
109+
className="text-xs leading-relaxed text-white/80 sm:text-sm relative z-10 w-full"
110110
initial={{ opacity: 0, y: 20 }}
111111
animate={{ opacity: 1, y: 0 }}
112112
transition={{ duration: 0.5, delay: 0.5 }}

0 commit comments

Comments
 (0)