Skip to content

Commit

Permalink
fix blog post preview lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaz9 committed Sep 6, 2024
1 parent c431a02 commit 3c3883a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/.astro/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1723291863722
"lastUpdateCheck": 1725632250401
}
}
2 changes: 1 addition & 1 deletion apps/web/src/components/blog/blog-post-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function BlogPostPreview({ post, featured, lang }: BlogPostPreviewProps)

<a href={routes.blogPostPath(post.slug, localeToLang(post.locale))}>
<h2 className="mb-2 font-serif leading-none text-gray-900">{post.title}</h2>
<p className="truncate text-gray-600 sm:whitespace-normal sm:break-words">
<p className="line-clamp-4 text-gray-600 sm:whitespace-normal sm:break-words">
{post.excerpt}
</p>
</a>
Expand Down

0 comments on commit 3c3883a

Please sign in to comment.