From fadefdc0a133a1608d672cd03f68df1dafaababa Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Tue, 2 Jun 2026 15:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=A1=E9=A1=BF=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E8=BF=94=E5=9B=9E=E9=A1=B6=E9=83=A8=E5=8D=A1?= =?UTF-8?q?=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Ying/assets/js/modules/floating-tools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/Ying/assets/js/modules/floating-tools.js b/themes/Ying/assets/js/modules/floating-tools.js index 72812905..23bf77a8 100644 --- a/themes/Ying/assets/js/modules/floating-tools.js +++ b/themes/Ying/assets/js/modules/floating-tools.js @@ -205,7 +205,8 @@ window.initFloatingTools = function() { e.preventDefault(); var comments = document.getElementById('Comments') || document.querySelector('.artalk'); if (comments) { - comments.scrollIntoView({ behavior: 'smooth', block: 'start' }); + var y = comments.getBoundingClientRect().top + window.scrollY - 20; + window.scrollTo({ top: y, behavior: 'smooth' }); } }); }