From 834a40819cf5111276689f07b73578a86ce5dbca Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Fri, 30 Jan 2026 22:30:11 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E9=83=A8=E7=BD=B2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/upy.yml | 4 ++- .../post/2026-01-31-Artalk接入AI摘要/index.md | 2 +- themes/Ying/assets/css/main.css | 34 +++++++++++-------- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/.github/workflows/upy.yml b/.github/workflows/upy.yml index 03602c9b..d8bda95f 100644 --- a/.github/workflows/upy.yml +++ b/.github/workflows/upy.yml @@ -51,9 +51,11 @@ jobs: git config --global user.name "GitHub Actions" git config --global user.email "actions@github.com" git add content/post - if ! git diff-index --quiet HEAD; then + if ! git diff --staged --quiet; then git commit -m "chore: auto-generate ai comments [skip ci]" git push + else + echo "No changes to commit" fi - name: Generate Friend Circle Data diff --git a/content/post/2026-01-31-Artalk接入AI摘要/index.md b/content/post/2026-01-31-Artalk接入AI摘要/index.md index 0bf506a2..114cacab 100644 --- a/content/post/2026-01-31-Artalk接入AI摘要/index.md +++ b/content/post/2026-01-31-Artalk接入AI摘要/index.md @@ -1,5 +1,5 @@ --- -title: Artalk 评论区接入 AI 摘要的尝试 +title: Artalk评论区接入AI摘要的尝试 date: 2026-01-31T13:20:00.000Z draft: false categories: diff --git a/themes/Ying/assets/css/main.css b/themes/Ying/assets/css/main.css index 1a1e6970..48c87c5e 100644 --- a/themes/Ying/assets/css/main.css +++ b/themes/Ying/assets/css/main.css @@ -210,12 +210,17 @@ code::-webkit-scrollbar { .code-fold-container { position: relative; margin-bottom: 1rem; - border-radius: 4px; /* Optional: match highlight radius */ + border-radius: 4px; + display: flex; + flex-direction: column; } -.code-fold-container.collapsed { +.code-fold-container.collapsed .highlight, +.code-fold-container.collapsed pre { max-height: 360px; overflow: hidden; + mask-image: linear-gradient(to bottom, black 280px, transparent 360px); + -webkit-mask-image: linear-gradient(to bottom, black 280px, transparent 360px); } /* Ensure inner code blocks don't have bottom margin when wrapped */ @@ -227,22 +232,22 @@ code::-webkit-scrollbar { .code-expand-btn { display: none; position: absolute; - bottom: -7px; - left: -146px; - width: 100%; - height: 80px; + bottom: 10px; + left: 50%; + transform: translateX(-50%); + width: auto; + margin: 0; + z-index: 10; text-align: center; - /* Gradient Background for Fade Effect */ - background: linear-gradient(180deg, rgba(246, 248, 250, 0) 0%, rgba(246, 248, 250, 0.9) 50%, rgba(246, 248, 250, 1) 100%); border: none; + background: transparent; color: #586069; cursor: pointer; - z-index: 10; font-size: 13px; transition: all 0.2s; align-items: center; justify-content: center; - padding-top: 20px; + padding: 0; } /* Show button when collapsed */ @@ -271,7 +276,6 @@ code::-webkit-scrollbar { /* Dark Mode Support */ [data-theme="dark"] .code-expand-btn { - background: linear-gradient(180deg, rgba(40, 42, 54, 0) 0%, rgba(40, 42, 54, 0.9) 50%, rgba(40, 42, 54, 1) 100%); color: #f8f8f2; } @@ -2670,7 +2674,7 @@ input[type=submit] { .floating-tools a { width: 40px; height: 40px; - background-color: rgba(255, 255, 255, 0.9); /* Increased opacity */ + background-color: rgba(255, 255, 255, 0.75); /* Frosted glass opacity */ color: #333; border-radius: 50%; text-align: center; @@ -2684,9 +2688,9 @@ input[type=submit] { align-items: center; /* Optimized transition: specific properties instead of all */ transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease; - /* Removed backdrop-filter for performance */ - /* backdrop-filter: blur(10px) saturate(180%); */ - /* -webkit-backdrop-filter: blur(10px) saturate(180%); */ + /* Restored backdrop-filter */ + backdrop-filter: blur(10px) saturate(180%); + -webkit-backdrop-filter: blur(10px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.4); }