fix: 修复助手消息右对齐并补充用户图标

This commit is contained in:
NathanAlex7
2026-09-15 15:32:41 +08:00
parent 97f8f0edc9
commit aec52ecdf6
4 changed files with 25 additions and 2 deletions
+5
View File
@@ -9,6 +9,7 @@ const globals = read("src/app/globals.css");
const navigation = read("src/components/xingbang/navigation.css");
const workspace = read("src/app/data-access/workspace.css");
const assistant = read("src/components/xingbang/business-assistant.css");
const assistantComponent = read("src/components/xingbang/BusinessAssistant.tsx");
const operations = read("src/app/operations-center/operations.css");
assert.match(globals, /font-size:\s*16px/, "全局正文应提供清晰的基础字号");
@@ -20,6 +21,10 @@ assert.match(workspace, /\.ra-button\.primary\{background:#17634c/, "主操作
assert.match(workspace, /\.xb-review-final>\.ra-button:not\(\.primary\)\{border-color:#d7837b/, "退回操作应与批准操作清楚区分");
assert.match(workspace, /\.xb-panel>p,.xb-panel p,.xb-panel details\{font-size:14px/, "业务面板正文不应继续使用过小字号");
assert.match(assistant, /\.ba-messages article p\{font-size:15px/, "助手对话正文应易于阅读");
assert.match(assistant, /\.ba-messages article\.user\{width:100%;max-width:100%;margin-left:0\}/, "用户消息应占据整行以便贴右显示");
assert.match(assistant, /\.ba-messages article\.user>div\{width:100%;justify-content:flex-end/, "用户气泡内容应靠右对齐");
assert.match(assistant, /@media\(max-width:820px\)\{\.ba-messages article\.user p\{max-width:88%\}\}/, "移动端用户气泡应保留可读宽度");
assert.match(assistantComponent, /className="ba-user-icon" aria-label="本人"><UserRound/, "用户消息应显示清晰的人类图标");
assert.match(assistant, /\.ba-workspace aside button\{min-height:46px/, "助手快捷操作应有明显点击区域");
assert.match(operations, /\.td-hero-actions button,.td-hero-actions select\{height:46px/, "时效看板操作控件应易于辨认和点击");