fix(theme): 修复浅色主题下大神昵称白底白字及标签对比度过低问题,消除黑底黑字与样式失效缺陷
这个提交包含在:
@@ -112,4 +112,28 @@ describe('UI/UX 规范门禁 (TDD 测试套件: 全面杜绝系统 Emoji)', () =
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('5. 活动列表页品类快捷筛选胶囊栏防折行与弹性挤压门禁校验', () => {
|
||||
it('pages/activity/list.vue 中 .capsule-item 与 .capsule-text 必须设置单行防折行与禁止挤压', () => {
|
||||
const rootDir = path.resolve(__dirname, '../../');
|
||||
const activityVuePath = path.join(rootDir, 'pwuniapp', 'pages', 'activity', 'list.vue');
|
||||
expect(fs.existsSync(activityVuePath)).toBe(true);
|
||||
|
||||
const content = fs.readFileSync(activityVuePath, 'utf-8');
|
||||
|
||||
// 验证 .capsule-item 样式块包含 flex-shrink: 0 与 white-space: nowrap
|
||||
const itemMatch = content.match(/\.capsule-item\s*\{([\s\S]*?)\n\s*\.capsule-svg/);
|
||||
expect(itemMatch).not.toBeNull();
|
||||
const itemStyle = itemMatch![1];
|
||||
expect(itemStyle).toContain('flex-shrink: 0');
|
||||
expect(itemStyle).toContain('white-space: nowrap');
|
||||
|
||||
// 验证 .capsule-text 文本样式块包含 white-space: nowrap
|
||||
const textMatch = content.match(/\.capsule-text\s*\{([\s\S]*?)\}/);
|
||||
expect(textMatch).not.toBeNull();
|
||||
const textStyle = textMatch![1];
|
||||
expect(textStyle).toContain('white-space: nowrap');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户