line-claimp

This commit is contained in:
tangly1024.com
2023-06-28 11:34:56 +08:00
parent 15bab79ab6
commit a8a6bba283
2 changed files with 1 additions and 11 deletions

View File

@@ -181,16 +181,6 @@ nav {
margin: -0.125em 0.25em;
}
/* 固定两行 */
.text-line-2 {
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
word-wrap: break-word;
word-break: break-all;
}
.nobelium{
@apply flex flex-col justify-between

View File

@@ -51,7 +51,7 @@ const LatestPostsGroup = ({ latestPosts, siteInfo }) => {
}
>
<div>
<div className='text-line-2'>{post.title}</div>
<div className='line-clamp-2'>{post.title}</div>
<div className="text-gray-500">{post.lastEditedTime}</div>
</div>
</div>