diff --git a/styles/globals.css b/styles/globals.css index 79e490de..ae4d6aca 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -286,7 +286,7 @@ a.avatar-wrapper { font-weight: 500; } -.p-4-lines { +.line-clamp-4 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; @@ -294,14 +294,21 @@ a.avatar-wrapper { text-overflow: ellipsis; } -.p-3-lines { +.line-clamp-3 { + overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; - -webkit-line-clamp: 3; - overflow: hidden; - text-overflow: ellipsis; + -webkit-line-clamp: 3; } +.line-clamp-2 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} + + /* fukasawa的首页响应式分栏 */ #theme-fukasawa .grid-item { height: auto; diff --git a/themes/example/components/BlogPostCard.js b/themes/example/components/BlogPostCard.js index 3bc3b720..fef41d60 100644 --- a/themes/example/components/BlogPostCard.js +++ b/themes/example/components/BlogPostCard.js @@ -4,7 +4,7 @@ import Link from 'next/link' import TwikooCommentCount from '@/components/TwikooCommentCount' const BlogPostCard = ({ post }) => { - const showPageCover = CONFIG_EXAMPLE.POST_LIST_COVER + const showPageCover = CONFIG_EXAMPLE.POST_LIST_COVER && post?.pageCoverThumbnail return
diff --git a/themes/example/components/MenuItemDrop.js b/themes/example/components/MenuItemDrop.js index 756b57df..2e0370d4 100644 --- a/themes/example/components/MenuItemDrop.js +++ b/themes/example/components/MenuItemDrop.js @@ -26,7 +26,7 @@ export const MenuItemDrop = ({ link }) => { {/* 子菜单 */} {hasSubMenu &&