fix(short-drama-agent-front): 优化首帧布局与来源复核
This commit is contained in:
1 parent
10e008ca10
commit
3915566994
17 files changed
+733
-223
No files matched your search
@@ -293,7 +293,14 @@ describe('全站平面主题', () => {
|
||||
it('业务面板、列表分组和标签以背景区分,保留键盘焦点与选中指示', () => {
|
||||
// happy-dom 不计算布局;此项保护 CSS 契约,不能替代浏览器视觉验收。
|
||||
const css = readAllStyles()
|
||||
expect(css).not.toMatch(/border-radius:\s*[1-9]/)
|
||||
// 用户明确确认的首帧状态圆章是唯一例外,普通面板、按钮和标签仍必须保持直角。
|
||||
const roundedRules = [...css.matchAll(/([^{}]+)\{([^{}]*)\}/g)].filter(([, , declarations]) =>
|
||||
/border-radius:\s*[1-9]/.test(declarations!)
|
||||
)
|
||||
expect(roundedRules.map(([, selector]) => selector!.replace(/\/\*[\s\S]*?\*\//g, '').trim())).toEqual([
|
||||
'.production-condition-seal'
|
||||
])
|
||||
expect(roundedRules[0]?.[2]).toMatch(/border-radius:\s*50%;/)
|
||||
// 主体身份的新流程用单条分隔线区分下一步操作,普通业务面板仍保持平面表面。
|
||||
const separators = [...css.matchAll(/([^{}]+)\{([^{}]*)\}/g)]
|
||||
.filter(([, , declarations]) =>
|
||||
|
||||
Reference in new issue
Block a user