Files
sproutclaw-web/frontend/src/components/chat/ToolCallBlock.module.css
shumengya 767a776a3e feat: align chat rendering with CLI and trim frontend load weight
- Merge thinking and assistant text into one assistant bubble with ordered blocks

- Restyle tool execution blocks to match CLI layout and status

- Remove startup splash screen and ship woff2-only fonts in public

- Add default avatars when agent or user image is unset

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-21 20:42:48 +08:00

98 lines
1.4 KiB
CSS

.block {
margin: 0;
border-radius: 8px;
border: 1px solid #e5e7eb;
background: #f8fafc;
overflow: hidden;
}
.pending {
border-color: #dbeafe;
background: #f0f7ff;
}
.success {
border-color: #bbf7d0;
background: #f0fdf4;
}
.error {
border-color: #fecaca;
background: #fef2f2;
}
.summary {
list-style: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 10px;
user-select: none;
}
.summary::-webkit-details-marker {
display: none;
}
.toolName {
font-weight: 600;
color: #374151;
font-size: 0.92em;
}
.status {
flex-shrink: 0;
font-size: 11px;
color: #6b7280;
}
.pending .status {
color: #2563eb;
}
.success .status {
color: #15803d;
}
.error .status {
color: #b91c1c;
}
.detail {
margin: 0;
padding: 8px 10px 10px;
border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.args {
margin: 0 0 6px;
font-size: 0.85em;
color: #6b7280;
font-family: var(--font-mono, ui-monospace, monospace);
word-break: break-all;
}
.detailPre {
margin: 0;
padding: 0;
white-space: pre-wrap;
word-break: break-word;
font-size: inherit;
line-height: inherit;
font-family: var(--font-mono, ui-monospace, monospace);
}
.detailPre :global(.diffAdd) {
color: #15803d;
}
.detailPre :global(.diffDel) {
color: #b91c1c;
}
.detailPre :global(.diffMeta) {
color: #6b7280;
}