优化: 前端批(审批体系一致 + GitChanges UI + token/控件统一 + 死代码)

审批体系一致:ApprovalPopup 浮窗加挂起时长提示(H1)+session 按钮+path deny 二次确认(M4/M5);ToolCard/useToolApproval 加 session+onDeny 确认(对齐 DirAuthDialog 四按钮)+ToolCardList decision 类型加 session;ApprovalDialog 失败显 toast(治 store 吞错 M31);ApprovalOverlay dismiss 改响应式(L26)

GitChanges UI(问题12 前端 12b-12h):showCommitFileDiff 精确匹配(12b)+去重 git log(12c)+详情滑出不挤压(12d)+双行提交行(12f)+搜索过滤(12g)+历史 Tab 显分支(12h)+diff 侧边栏内更宽可折叠面板(12e:FilePreview 不支持任意提交 diff,折中)

token+控件:global.css 定义 --df-primary(治幽灵变量 M26)+settings.css 加 .setting-number/.setting-input/.setting-textarea+4 Section 套用(问题8)

死代码:删 PlanProgress.vue(零引用)+PlanLayerInfo 类型+i18n 孤儿 key(L1)
This commit is contained in:
lxy
2026-08-02 12:42:52 +08:00
parent ffb202e2e9
commit caaabf0c15
19 changed files with 654 additions and 335 deletions
+50
View File
@@ -34,6 +34,7 @@
.setting-control { display: flex; align-items: center; }
/* ===== 控件(5/5 Panel 重复) ===== */
/* 控件统一基准(padding/border/radius/font 对齐),各 type 仅差异化必要属性 */
.setting-select {
padding: 6px 12px;
background: var(--df-bg);
@@ -47,6 +48,55 @@
}
.setting-select:focus { border-color: var(--df-accent); }
/* number input:窄,无 spinner 累赘外观,继承基准样式 */
.setting-number {
padding: 6px 12px;
background: var(--df-bg);
border: 0.5px solid var(--df-border);
border-radius: var(--df-radius-sm);
color: var(--df-text);
font-size: 13px;
font-family: inherit;
outline: none;
cursor: pointer;
min-width: 80px;
}
.setting-number:focus { border-color: var(--df-accent); }
/* text input:通用单行文本(目录/模型名/脚本名单) */
.setting-input {
padding: 6px 12px;
background: var(--df-bg);
border: 0.5px solid var(--df-border);
border-radius: var(--df-radius-sm);
color: var(--df-text);
font-size: 13px;
font-family: inherit;
outline: none;
min-width: 160px;
}
.setting-input:focus { border-color: var(--df-accent); }
.setting-input::placeholder { color: var(--df-text-dim); }
/* textarea:多行(自定义提示词等),垂直拉伸 */
.setting-textarea {
width: 100%;
padding: 8px 12px;
background: var(--df-bg);
border: 0.5px solid var(--df-border);
border-radius: var(--df-radius-sm);
color: var(--df-text);
font-size: 13px;
font-family: inherit;
line-height: 1.5;
outline: none;
resize: vertical;
min-height: 80px;
box-sizing: border-box;
}
.setting-textarea:focus { border-color: var(--df-accent); }
.setting-textarea::placeholder { color: var(--df-text-dim); }
/* Toggle(3/5 Panel 重复) */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }