fix: 统一图库操作图标背景

为刷新图库和批量生图按钮补充与未选中布局按钮一致的浅色背景。
This commit is contained in:
GouJ
2026-09-08 16:39:57 +08:00
committed by GitHub
parent aa83f7196d
commit fbf2690f2a
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -218,8 +218,9 @@ describe('全站平面主题', () => {
)
expect(css).toMatch(/\.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\);/
/\.gallery-layout-switch \.layout-option-button:not\(\.layout-option-active\),\s*\.gallery-layout-switch \.gallery-action-button\s*\{[^}]*background:\s*var\(--app-control-hover\);/
)
expect(source.match(/class="icon-button gallery-action-button"/g)).toHaveLength(2)
expect(css).toMatch(
/\.gallery-layout-switch\s*\{[^}]*display:\s*flex;[^}]*align-items:\s*center;[^}]*gap:\s*8px;/
)