From 061423d21cfd3585fa04ba574d5ebc45b08d19c0 Mon Sep 17 00:00:00 2001 From: fengsilin Date: Tue, 31 Mar 2026 17:57:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5=20F?= =?UTF-8?q?ooter=20=E6=97=A0=E6=B3=95=E5=AE=8C=E6=95=B4=E4=B8=8B=E6=BB=91?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 home-snap-section 类让 Footer 参与 scroll snap - 覆盖 min-height 和 height 为 auto,允许内容自适应 Co-Authored-By: Claude Opus 4.6 --- web/src/index.css | 4 ++++ web/src/pages/Home/components/HomePageFooter.jsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/index.css b/web/src/index.css index 1f645b3..3bb7771 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -1299,6 +1299,10 @@ html:not(.dark) .hero-blur-ball-2 { padding: 48px 24px; background-color: var(--semi-color-bg-0); border-top: 1px solid var(--semi-color-border); + /* Footer 不需要强制全屏高度 */ + min-height: auto !important; + /* 内容高度自适应,允许超出 */ + height: auto !important; } @media (min-width: 768px) { diff --git a/web/src/pages/Home/components/HomePageFooter.jsx b/web/src/pages/Home/components/HomePageFooter.jsx index 1245f02..d49287a 100644 --- a/web/src/pages/Home/components/HomePageFooter.jsx +++ b/web/src/pages/Home/components/HomePageFooter.jsx @@ -35,7 +35,7 @@ const HomePageFooter = () => { ]; return ( -