diff --git a/src/features/visual-style/components/StyleImages.vue b/src/features/visual-style/components/StyleImages.vue index 3fb6f02..ba6345e 100644 --- a/src/features/visual-style/components/StyleImages.vue +++ b/src/features/visual-style/components/StyleImages.vue @@ -118,7 +118,7 @@ const rules = { imageUrl: imageUrlRule, sortOrder: fieldRule(Number.isSafeIntege -
+
{ expect(readFileSync('src/components/ui/DirectoryItem.vue', 'utf8')).not.toContain('icon-button') }) + it('风格参考图操作按钮与输入行对齐,缩略图在宽屏下保持紧凑', () => { + const css = readAllStyles() + expect(css).toMatch(/\.style-image-submit\s*\{[^}]*margin-top:\s*29px;/) + expect(css).toMatch( + /\.style-image-list\s*\{[^}]*display:\s*grid;[^}]*grid-template-columns:\s*repeat\(auto-fill, minmax\(min\(220px, 100%\), 260px\)\);[^}]*gap:\s*16px;/ + ) + }) + it('业务面板、列表分组和标签以背景区分,保留键盘焦点与选中指示', () => { // happy-dom 不计算布局;此项保护 CSS 契约,不能替代浏览器视觉验收。 const css = readAllStyles()