From 3ee95adfb091589a33ca7fe97f08581fac7ae5bf Mon Sep 17 00:00:00 2001 From: wonder Date: Wed, 2 Sep 2026 20:19:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=B3=E6=A0=8F?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=90=8E=E5=BA=95=E9=83=A8=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E7=9A=84=E5=B8=83=E5=B1=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 .app 容器从 min-height 改为 height,使左右两栏严格限制在视口内独立滚动, 移除 .main 多余的 max-height 约束。 Co-Authored-By: Claude Code --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2859c75..6f2794f 100644 --- a/index.html +++ b/index.html @@ -41,9 +41,9 @@ body { font-family: -apple-system, 'Segoe UI', sans-serif; background: var(--bg) .theme-toggle:hover { background: rgba(255,255,255,0.25); } /* Layout */ -.app { display: flex; min-height: calc(100vh - 100px); } +.app { display: flex; height: calc(100vh - 100px); } .sidebar { width: 280px; background: var(--surface); border-right: 1px solid var(--surface2); padding: 16px; overflow-y: auto; flex-shrink: 0; } -.main { flex: 1; padding: 24px; overflow-y: auto; max-height: calc(100vh - 100px); } +.main { flex: 1; padding: 24px; overflow-y: auto; } /* Sidebar */ .sidebar-title { font-size: 13px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; padding: 0 8px; }