From a5f21be2f98c3b0cf22ab219027a427f923d39de Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 23 Sep 2023 13:37:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=96=87=E7=AB=A0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/zhheoblog.css | 1 + 1 file changed, 1 insertion(+) 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 { From 68e97454fc1c2c7dc8dda7814869f656604e32bd Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 23 Sep 2023 14:14:17 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=87=E7=AB=A0=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B7=BB=E5=8A=A0ai=E6=91=98=E8=A6=81=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- annotation-setting.yaml | 9 +++++++++ templates/post.html | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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/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 @@ - From d2bb8f64c471e6f2925cd0ce8159701cff9d81dc Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 23 Sep 2023 17:13:44 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=BC=B9=E5=B9=95?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/commentBarrage.css | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 {