chore(ui): 清掉操作成功的冗余提示,统一各处垃圾桶图标

这些 toast 说的东西界面已经摆在眼前:撤回后的文字就在输入框里、复制按钮自己变勾、
删除完列表自己少一行、深度思考按钮自己变色。弹出来反而挡住会话内容,统一去掉。
保留全部失败提示,以及带额外信息的(终止时清了几条队列、清空后文件仍保留)。

垃圾桶在前端有四份画法(盖沿 polyline、桶身一体、线条 path 三种混写),统一成
盖沿+提手+桶身+两道竖线这一套;尺寸与描边跟随各自上下文(20px/2、13px/1.8、14px/1.9),
只求形状一致,不改各处的视觉粗细。
This commit is contained in:
2026-11-13 15:12:05 +08:00
parent 7b1ef9a479
commit 0433e61941
4 changed files with 6 additions and 11 deletions
+1 -3
View File
@@ -35,7 +35,7 @@
'<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>' +
'</button>' +
'<button class="conv-del" data-del="' + esc(s.id) + '" title="删除会话" aria-label="删除会话">' +
'<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>' +
'<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6"/><path d="M14 11v6"/></svg>' +
'</button>' +
'</div>';
}
@@ -96,7 +96,6 @@
syncUrl();
setView('welcome'); // 复用 newChat 同样的视图切换路径
}
toast('已删除会话');
loadSessionList();
} catch (e) { toast('删除失败:' + e.message); }
}
@@ -365,7 +364,6 @@
const title = String(t).trim();
try {
await req('PATCH', '/api/sessions/' + state.sessionId, { title: title });
toast('已重命名');
state.sessionTitle = title;
renderHeader();
loadSessionList();