This commit is contained in:
tangly1024.com
2024-02-27 15:15:57 +08:00
parent a8085fa4d9
commit fd19878cd9
2 changed files with 2 additions and 3 deletions

View File

@@ -52,8 +52,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
<div className="px-4 flex flex-col w-full text-gray-700 dark:text-gray-300">
{(!showPreview || showSummary) && post.summary && (
<p style={{ overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box', WebkitLineClamp: '4', WebkitBoxOrient: 'vertical' }}
className="replace my-2 text-sm font-light leading-7">
<p className="replace my-2 text-sm font-light leading-7 line-clamp-3">
{post.summary}
</p>
)}