diff --git a/annotation-setting.yaml b/annotation-setting.yaml index 93e4f281..fa28cd3e 100644 --- a/annotation-setting.yaml +++ b/annotation-setting.yaml @@ -7,6 +7,15 @@ spec: group: content.halo.run kind: Post formSchema: + - $formkit: "radio" + name: "ai" + label: "AI 摘要" + help: "默认后台设置" + options: + - label: "启用" + value: "true" + - label: "禁用" + value: "false" - $formkit: "radio" name: "copyrightEnable" id: "copyrightEnable" diff --git a/templates/assets/zhheo/commentBarrage.css b/templates/assets/zhheo/commentBarrage.css index 5aece2fa..eb5f0864 100644 --- a/templates/assets/zhheo/commentBarrage.css +++ b/templates/assets/zhheo/commentBarrage.css @@ -37,9 +37,9 @@ border: var(--style-border); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: blur(20px); + transform: translateZ(0); position: fixed; box-shadow: var(--heo-shadow-border); - overflow: hidden; } .comment-barrage-item:hover { @@ -118,7 +118,6 @@ line-height: 1; padding: 4px; border-radius: 4px; - white-space: nowrap; } .comment-barrage-item .barrageHead .barrageTitle:hover { @@ -140,9 +139,8 @@ font-size: 14px !important; font-weight: normal !important; height: calc(100% - 30px); - overflow: hidden; - width: fit-content; - max-height: 48px; + overflow: scroll; + cursor: pointer } .comment-barrage-item .barrageContent a { diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index 746b9bde..0d121ee8 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -8642,6 +8642,7 @@ li { .recent-post-item .recent-post-info .recent-post-info-top .content { opacity: 1; -webkit-line-clamp: 2; + display: none; } #recent-posts .recent-post-item .recent-post-info .article-title { diff --git a/templates/post.html b/templates/post.html index f3f744a1..42688d6b 100644 --- a/templates/post.html +++ b/templates/post.html @@ -136,7 +136,8 @@ -
+
AI-摘要
切换
@@ -159,7 +160,8 @@ -