We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 339c2c3 commit 5273011Copy full SHA for 5273011
1 file changed
front/src/components/features/blog/PostCard.jsx
@@ -68,8 +68,15 @@ export const PostCard = ({ post }) => {
68
<span>{post.readingTime} min read</span>
69
</div>
70
71
- {/* Excerpt */}
72
- <p className="text-gray-600 dark:text-brand-fg-muted mb-4 line-clamp-3 leading-relaxed text-sm flex-1">
+ {/* Excerpt — clean 3-line clamp (no flex-1; tags use mt-auto to anchor) */}
+ <p
73
+ className="text-gray-600 dark:text-brand-fg-muted mb-4 leading-relaxed text-sm overflow-hidden"
74
+ style={{
75
+ display: '-webkit-box',
76
+ WebkitLineClamp: 3,
77
+ WebkitBoxOrient: 'vertical',
78
+ }}
79
+ >
80
{post.excerpt}
81
</p>
82
0 commit comments