From 48924d0d561570bdc3b7d21f740897798c15bb25 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 19 May 2026 15:48:46 +0800 Subject: [PATCH] =?UTF-8?q?ui(dev=20SPA):=20=E5=AF=B9=E8=AF=9D=E9=A1=B6?= =?UTF-8?q?=E6=A0=8F=E6=8C=89=E9=92=AE=E6=94=B9=E5=90=8D"=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=AF=B9=E8=AF=9D=E8=AE=B0=E5=BD=95"=20+=20=E8=AF=AD?= =?UTF-8?q?=E4=B9=89=E5=8C=96=E4=B8=8A=E8=89=B2(=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E7=BB=BF/=E5=AF=BC=E5=87=BA=E8=93=9D/=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E6=A9=99/=E5=88=A0=E9=99=A4=E7=BA=A2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- web/static/dev.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/web/static/dev.html b/web/static/dev.html index b6db3f3..6d6dfa1 100644 --- a/web/static/dev.html +++ b/web/static/dev.html @@ -98,6 +98,16 @@ } .pane-head .label { font-weight: 600; font-size: 13px; white-space: nowrap; flex-shrink: 0; } .pane-head .spacer { flex: 1; } + /* 对话顶栏按钮:语义化常态上色 — 完成 绿/导出 蓝/废弃 橙/删除 红 */ + #btn-done { color: #27ae60; border-color: #a9dfbf; } + #btn-export { color: #2980b9; border-color: #aed6f1; } + #btn-abandon { color: #e67e22; border-color: #f5cba7; } + #btn-delete-task { color: #c0392b; border-color: #f5b7b1; } + #btn-done:hover:not(:disabled) { background: #e9f7ef; } + #btn-export:hover:not(:disabled) { background: #ebf5fb; } + #btn-abandon:hover:not(:disabled) { background: #fef5e7; } + #btn-delete-task:hover:not(:disabled) { background: #fdedec; } + #pane-mid > .pane-head > button.small:disabled { opacity: 0.4; cursor: not-allowed; } /* ───── floating dropdown menu ───── */ /* 单例:position: fixed 逃出 pane overflow 裁剪;右上角触发,向下展开 */ @@ -428,7 +438,7 @@
对话 - + @@ -846,7 +856,7 @@ function taskMenuItems(t) { onclick: () => setTaskStatus(t.task_id, "completed", t.name || "(未命名)") }, { act: "abandon", label: "废弃", cls: "act-abandon", disabled: !isActive, onclick: () => setTaskStatus(t.task_id, "abandoned", t.name || "(未命名)") }, - { act: "export", label: "导出 docx", cls: "act-export", disabled: !hasMsg, + { act: "export", label: "导出对话记录", cls: "act-export", disabled: !hasMsg, onclick: () => exportTask(t.task_id) }, { act: "delete", label: "删除", cls: "act-delete", onclick: () => deleteTask(t.task_id, t.name || "(未命名)", t.n_messages || 0) },