From 8a331d199cf850446a4e9b6e0fc907457bee2bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91=E6=A0=91?= Date: Fri, 9 Jan 2026 19:17:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=B8=83=E5=B1=80):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E8=AF=84=E8=AE=BA=E5=8C=BA=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在布局组件中添加返回评论区按钮,当页面滚动超过横幅高度且评论区存在时显示该按钮。点击按钮可平滑滚动至评论区位置。 --- src/components/control/BackToTop.astro | 15 +++++++++++++++ src/layouts/Layout.astro | 11 +++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/components/control/BackToTop.astro b/src/components/control/BackToTop.astro index 0a93af4cb..fd12b553e 100644 --- a/src/components/control/BackToTop.astro +++ b/src/components/control/BackToTop.astro @@ -4,6 +4,11 @@ import { Icon } from "astro-icon/components";