fix: 补充图库未选中布局背景

为未选中的网格或瀑布流按钮增加浅灰底色,保留选中绿色状态,并补充切换状态测试。
This commit is contained in:
GouJ
2026-09-08 10:22:39 +08:00
committed by GitHub
parent 42c40383dc
commit c22d281cc7
4 changed files with 33 additions and 18 deletions
+3
View File
@@ -200,6 +200,9 @@ describe('全站平面主题', () => {
expect(css).toMatch(
/@container \(max-width: 460px\)\s*\{[^}]*\.form-image-filters\s*\{[^}]*grid-template-columns:\s*minmax\(0, 1fr\) 120px;[^}]*\}[^}]*\.filter-result-count\s*\{[^}]*display:\s*none;/
)
expect(css).toMatch(
/\.gallery-layout-switch \.layout-option-button:not\(\.layout-option-active\)\s*\{[^}]*background:\s*var\(--app-control-hover\);/
)
})
it('单图标按钮以当前控件高度为边长,尺寸与内容按钮互不影响', () => {