Skip to content

Commit

Permalink
Merge pull request #13919 from sumitvekariya/fix-long-event-description
Browse files Browse the repository at this point in the history
truncate long event description
  • Loading branch information
corwintines authored Oct 4, 2024
2 parents f3d855e + a1cb5f6 commit 72d52b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ const EventCard: React.FC<EventCardProps> = ({
<h3 className="text-xl font-bold md:text-2xl">{title}</h3>
<span className="text-sm opacity-60">{location}</span>
</div>
<p className="md:text-sm md:leading-[1.6rem]">{description}</p>
<p className="line-clamp-6 md:text-sm md:leading-[1.6rem]">
{description}
</p>
</CardContent>
<CardFooter className="p-4 pt-0">
<ButtonLink href={href} variant="outline" className="w-full text-sm">
Expand Down

0 comments on commit 72d52b8

Please sign in to comment.