From 290c437911366151fb41fdd95d1a54bd59c308b2 Mon Sep 17 00:00:00 2001 From: kicer Date: Sun, 6 Sep 2026 22:11:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE>=E6=A8=A1=E5=9E=8B=E6=B1=A0?= =?UTF-8?q?=E9=87=8D=E6=9E=84=EF=BC=9A=E5=B9=B3=E5=8F=B0=E5=8D=95=E5=8D=A1?= =?UTF-8?q?=E7=89=87(=E5=90=8D=E7=A7=B0+N=20keys,=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=8A=98=E5=8F=A0,=E5=B1=95=E5=BC=80=E6=8C=89=20Key=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BD=99=E9=A2=9D=E8=A1=8C)=EF=BC=9B?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=8D=A1=E7=82=B9=E5=87=BB/=E5=8F=B3?= =?UTF-8?q?=E4=B8=8A+=E5=9D=87=E5=BC=B9=E5=B9=B3=E5=8F=B0=E7=BC=96?= =?UTF-8?q?=E8=BE=91/=E6=96=B0=E5=A2=9E=E5=85=B1=E7=94=A8=20modal(?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=20Key=20=E5=A4=9A=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=A2=9E=E5=88=A0)=EF=BC=9BPATCH=20=E6=94=AF=E6=8C=81=20edits?= =?UTF-8?q?=20=E6=89=B9=E9=87=8F=E5=8E=9F=E5=AD=90=E5=86=99=EF=BC=9BGET=20?= =?UTF-8?q?effective=20=E5=AE=9E=E6=97=B6=E8=A7=A3=E6=9E=90=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=98=B2=E9=87=8D=E5=90=AF=E5=89=8D=E5=90=8E=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E9=94=99=E4=BD=8D=EF=BC=9B=E4=BF=AE=E5=A4=8D=E9=95=BF?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=90=8D=E6=BA=A2=E5=87=BA=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 27 ++- app/server/public/index.html | 382 ++++++++++++++++++-------------- app/server/routes/config.js | 37 +++- 3 files changed, 262 insertions(+), 184 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index e3b355d..865c344 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -943,10 +943,17 @@ label.icon-btn { cursor: pointer; } .mbal-refresh.spin svg { animation: mbal-spin 0.8s linear infinite; } @keyframes mbal-spin { to { transform: rotate(360deg); } } .model-group-empty { font-size: 12px; color: var(--gray-light); padding: 12px 4px 2px; text-align: center; } -.model-card { background: #fafbfd; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; } +.model-group-badge { font-size: 11px; color: var(--gray); background: var(--surface); border-radius: 9px; padding: 1px 7px; flex-shrink: 0; } +/* 每 Key 一行余额:左脱敏 key、右余额+刷新 */ +.mbal-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px 0; font-size: 12.5px; color: #556; } +.mbal-row:first-child { padding-top: 10px; } +.mbal-key { font-size: 11.5px; color: var(--gray); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.mbal-val { margin-left: auto; flex-shrink: 0; } +.model-card { background: #fafbfd; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; cursor: pointer; } .model-card:last-child { margin-bottom: 2px; } -.model-card-head { display: flex; align-items: center; gap: 8px; } -.model-card-name { font-weight: 600; font-size: 15px; flex-shrink: 0; cursor: pointer; } +.model-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; } +/* 名字过长时省略号收尾(原 flex-shrink:0 会把长模型名撑出卡片) */ +.model-card-name { font-weight: 600; font-size: 15px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; } .model-card-name:active { opacity: 0.55; } .model-card-meta { font-size: 12px; color: var(--gray); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .model-card-state { font-size: 11px; padding: 2px 8px; border-radius: 9px; flex-shrink: 0; } @@ -965,6 +972,20 @@ label.icon-btn { cursor: pointer; } .model-en-sw input:checked + .sw-track { background: var(--active); } .model-en-sw input:checked + .sw-track::after { transform: translateX(14px); } +/* ---------- 平台编辑/新增弹窗(模型池共用) ---------- */ +.modal.modal-wide { max-width: 480px; } +.mpe-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); } +.mpe-sec-head .ghost-btn.sm { flex: none; padding: 4px 12px; font-size: 12.5px; border-radius: 8px; } +.mpe-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } +.mpe-row input { margin-bottom: 0; padding: 8px 10px; font-size: 13px; } +.mpe-grow { flex: 1; min-width: 0; } +.mpe-con { width: 56px; flex: none; } +.mpe-mid { width: 104px; flex: none; } +.mpe-vis { flex: none; display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--gray); margin: 0; width: auto; } +.mpe-vis input { width: 15px; height: 15px; padding: 0; margin: 0; accent-color: var(--active); cursor: pointer; } +.mpe-del { flex: none; border: none; background: none; margin: 0; padding: 2px 7px; cursor: pointer; color: var(--gray-light); font-size: 18px; line-height: 1.2; } +.mpe-del:active { color: #c0392b; } + /* ---------- 编辑器页(config.yml 原文 / 技能文件) ---------- */ .set-editor { flex: 1; min-height: 0; display: flex; flex-direction: column; diff --git a/app/server/public/index.html b/app/server/public/index.html index e0caf9a..b8d7f84 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -230,34 +230,24 @@ - +