From da95a3c29cecea5d2f72d47223aa2fa5ec1a9b59 Mon Sep 17 00:00:00 2001 From: GouJ Date: Fri, 4 Sep 2026 11:49:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=9B=BE=E5=BA=93?= =?UTF-8?q?=E5=90=B8=E9=A1=B6=E5=8C=BA=E5=9F=9F=E4=B8=8E=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=9A=84=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin.css | 1 + src/components/ui/flatTheme.test.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/admin.css b/src/admin.css index 16d9351..ee2a198 100644 --- a/src/admin.css +++ b/src/admin.css @@ -465,6 +465,7 @@ body { z-index: 10; background: var(--app-subtle); margin-block: 10px 0; + padding-bottom: 12px; } .gallery-sticky-controls > .form-image-filter-region { margin-block: 0; diff --git a/src/components/ui/flatTheme.test.ts b/src/components/ui/flatTheme.test.ts index e9d9276..d0c60d8 100644 --- a/src/components/ui/flatTheme.test.ts +++ b/src/components/ui/flatTheme.test.ts @@ -152,6 +152,10 @@ describe('全站平面主题', () => { ) expect(css).toMatch(/\.asset-impact-links\s*\{[^}]*width:\s*max-content;[^}]*white-space:\s*nowrap;/) expect(css).toMatch(/\.gallery-sticky-controls > \.form-image-filter-region\s*\{[^}]*margin-block:\s*0;/) + // 列表前的间距属于吸顶容器内部,滚动时仍由不透明背景覆盖。 + expect(css).toMatch( + /\.gallery-workspace-page \.gallery-sticky-controls\s*\{[^}]*margin-block:\s*10px 0;[^}]*padding-bottom:\s*12px;/ + ) expect(css).toMatch( /\.asset-impact-links\s*\{[^}]*align-items:\s*center;[^}]*min-height:\s*32px;[^}]*padding-block:\s*6px;/ )