前端四处修复:工具卡片 spin 图标去掉转圈动画(完成后直接显示 ✓/✕);展开工具卡片时新增 tool-args-full 块完整展示调用参数(pretty JSON),结果填入独立的 tool-result 块;消息气泡内 ul/ol 恢复缩进与外边距,圆点不再溢出 msg-bubble;删除会话改为单个弹窗(内含默认不勾选的【同时删除任务目录】),取消两次 confirm

This commit is contained in:
2026-08-31 10:45:20 +08:00
parent b816efc23f
commit 491a0defe6
3 changed files with 57 additions and 7 deletions
+20 -2
View File
@@ -128,6 +128,8 @@ body {
.msg-bubble table { border-collapse: collapse; margin: 6px 0; display: block; overflow-x: auto; }
.msg-bubble th, .msg-bubble td { border: 1px solid #dde; padding: 4px 8px; font-size: 13px; }
.msg-bubble blockquote { border-left: 3px solid #ccd; padding-left: 8px; color: #667; margin: 4px 0; }
.msg-bubble ul, .msg-bubble ol { padding-left: 1.5em; margin: 6px 0; }
.msg-bubble li { margin: 2px 0; }
.msg-time { font-size: 10px; color: #aab; margin-top: 3px; }
/* 工具卡片 */
@@ -146,8 +148,8 @@ body {
font-size: 12px; color: #55492a;
}
.tool-card.error { background: #fdecea; border-color: #f2c4bd; color: #a3352a; }
.tool-card .spin { display: inline-block; animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.tool-card .spin { display: inline-block; width: 1em; text-align: center; }
.tool-card .tool-args-full { color: #6b5b2a; }
/* ---- 文件面板 ---- */
.files-panel {
@@ -227,6 +229,22 @@ body {
font-size: 15px; font-weight: 600; cursor: pointer;
}
.primary-btn:active { opacity: 0.9; }
.ghost-btn {
flex: 1; background: #f2f3f7; color: #445; border: 1px solid #dde;
border-radius: 10px; padding: 11px; font-size: 15px; cursor: pointer;
}
.ghost-btn:active { background: #e8eaf0; }
.btn-row { display: flex; gap: 10px; }
.btn-row .primary-btn { flex: 1; }
.modal .modal-text { font-size: 14px; color: #556; margin-bottom: 12px; }
.modal .del-dir {
display: flex; align-items: center; gap: 7px;
font-size: 14px; color: #334; margin-bottom: 14px; cursor: pointer;
}
.modal .del-dir input {
width: 16px; height: 16px; padding: 0; margin: 0; flex-shrink: 0;
accent-color: #c33;
}
/* ---- Toast ---- */
.toast {