feat(hub): render AI summary account breakdown as icon table
Replace pipe-separated account lines with a structured table from stats_snapshot, including exchange icons and position remarks. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3575,6 +3575,75 @@ body.hub-page-ai #page-ai {
|
||||
.ai-bubble-assistant.ai-result-md ol {
|
||||
margin: 4px 0 6px 1.15em;
|
||||
}
|
||||
.ai-ac-table-wrap {
|
||||
margin: 8px 0 12px;
|
||||
overflow-x: auto;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--inset-surface) 88%, transparent);
|
||||
}
|
||||
.ai-ac-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.ai-ac-table th,
|
||||
.ai-ac-table td {
|
||||
padding: 8px 10px;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
.ai-ac-table th {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
background: color-mix(in srgb, var(--inset-surface) 60%, transparent);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ai-ac-table tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
.ai-ac-table tbody tr:hover td {
|
||||
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;
|
||||
max-width: 16rem;
|
||||
}
|
||||
.ai-ac-unmon {
|
||||
color: var(--muted);
|
||||
}
|
||||
.ai-ac-err {
|
||||
color: var(--red);
|
||||
}
|
||||
.ai-ac-warn {
|
||||
color: var(--amber, #d4a017);
|
||||
}
|
||||
.ai-ac-table .pos,
|
||||
.ai-ac-table .neg {
|
||||
font-weight: 600;
|
||||
}
|
||||
.ai-placeholder {
|
||||
color: var(--muted);
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user