fix(hub): add section icons and color PnL in AI summary table

Show emoji headings for overview, accounts, alerts, and data notes; apply green/red styling to table PnL columns.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-07 00:33:44 +08:00
parent a5f5239be9
commit dfcf0f88fb
3 changed files with 39 additions and 58 deletions
+20 -16
View File
@@ -3541,6 +3541,20 @@ body.hub-page-ai #page-ai {
padding-bottom: 4px;
border-bottom: 1px solid var(--border-soft);
}
.ai-md-body.ai-result-md h2:first-child {
margin-top: 0;
}
.ai-md-body.ai-result-md h3 {
font-size: 0.92rem;
color: var(--accent-2, var(--accent));
margin: 16px 0 8px;
padding-bottom: 4px;
border-bottom: 1px solid var(--border-soft);
font-weight: 600;
}
.ai-md-body.ai-result-md h3:first-of-type {
margin-top: 4px;
}
.ai-result-md h3,
.ai-result-md h4 {
font-size: 0.92rem;
@@ -3609,23 +3623,9 @@ body.hub-page-ai #page-ai {
background: color-mix(in srgb, var(--accent-dim) 35%, transparent);
}
.ai-ac-name {
display: flex;
align-items: flex-start;
gap: 8px;
min-width: 9rem;
font-weight: 500;
}
.ai-ac-name > span:last-child {
flex: 1;
min-width: 0;
}
.ai-ex-icon {
display: inline-flex;
flex-shrink: 0;
line-height: 0;
border-radius: 5px;
overflow: hidden;
}
.ai-ac-remark {
color: var(--muted);
font-size: 0.74rem;
@@ -3640,8 +3640,12 @@ body.hub-page-ai #page-ai {
.ai-ac-warn {
color: var(--amber, #d4a017);
}
.ai-ac-table .pos,
.ai-ac-table .neg {
.ai-ac-table .ai-stat-val.pos {
color: var(--green);
font-weight: 600;
}
.ai-ac-table .ai-stat-val.neg {
color: var(--red);
font-weight: 600;
}
.ai-placeholder {