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) },