fix: 历史会话工具调用展示 — 可折叠工具卡片

This commit is contained in:
thzxx
2026-04-19 19:44:12 +08:00
parent aa33f8845e
commit f5fd851224
2 changed files with 98 additions and 0 deletions
+72
View File
@@ -2092,6 +2092,78 @@ html, body {
color: var(--critical);
}
/* ── 聊天区域工具调用历史(可折叠)── */
.tool-calls-history {
margin: 8px 0;
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
overflow: hidden;
background: var(--bg-layer);
}
.tool-calls-toggle {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
cursor: pointer;
user-select: none;
font-size: 12px;
color: var(--text-secondary);
transition: background 0.15s;
}
.tool-calls-toggle:hover {
background: var(--bg-hover);
}
.tool-calls-chevron {
font-size: 10px;
transition: transform 0.2s;
color: var(--text-tertiary);
}
.tool-calls-history.expanded .tool-calls-chevron {
transform: rotate(90deg);
}
.tool-calls-summary {
font-family: var(--font);
font-weight: 500;
}
.tool-calls-list {
display: none;
padding: 0 8px 8px;
}
.tool-calls-history.expanded .tool-calls-list {
display: block;
}
.tool-calls-list .tool-call-card {
margin: 6px 0;
font-size: 12px;
}
.tool-calls-list .tool-call-header {
padding: 6px 10px;
}
.tool-calls-list .tool-call-params {
padding: 4px 10px;
}
.tool-calls-list .tool-call-result {
padding: 6px 10px;
max-height: 200px;
}
.tool-calls-list .tool-result-content {
font-size: 11px;
max-height: 150px;
}
/* 状态颜色 */
.tool-call-pending {
border-color: rgba(212, 160, 60, 0.3);