外链新窗口 打开

This commit is contained in:
tangly1024
2022-04-10 13:42:27 +08:00
parent 073a05968f
commit 1cbcd5adac
3 changed files with 4 additions and 3 deletions

View File

@@ -39,7 +39,8 @@ const BlogPostCard = ({ post, showSummary }) => {
</div>
{(!showPreview || showSummary) && (
<p className="replace my-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7">
<p style={{ overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box', WebkitLineClamp: '4', WebkitBoxOrient: 'vertical' }}
className="replace h-full max-h-32 my-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7">
{post.summary}
</p>
)}