From b4c0b04aaaf8a1e1990635c9fd9ae238a1ed2659 Mon Sep 17 00:00:00 2001 From: kicer Date: Wed, 23 Sep 2026 11:29:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E8=A1=8C=E4=BA=8C=E8=BD=AE?= =?UTF-8?q?=E5=BE=AE=E8=B0=83:=E6=8A=BD=E5=B1=89=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=A1=8C=E5=8E=BB=E6=8E=89prof-badge(=E5=8F=AA=E7=95=99?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E6=A0=87=E9=A2=98,=E7=94=BB=E8=9B=87?= =?UTF-8?q?=E6=B7=BB=E8=B6=B3),chooseProfile=E9=9A=8F=E5=88=A0=E6=97=A0?= =?UTF-8?q?=E6=84=8F=E4=B9=89=E7=9A=84renderDrawerList=E9=87=8D=E7=94=BB(?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=BC=93=E5=AD=98=E5=90=8C=E6=AD=A5=E4=BF=9D?= =?UTF-8?q?=E7=95=99);.msw-prof=E9=94=81=E8=A1=8C=E7=9B=92=E2=80=94?= =?UTF-8?q?=E2=80=94label=E8=A1=8C=E9=AB=9830px/select=E5=AE=9A=E9=AB=9830?= =?UTF-8?q?px+line-height=2028px,=E6=A8=A1=E5=BC=8F=E5=AD=97=E6=A0=B7?= =?UTF-8?q?=E4=B8=8E=E4=B8=8B=E6=8B=89=E6=A1=86=E4=B8=A5=E6=A0=BC=E5=9E=82?= =?UTF-8?q?=E7=9B=B4=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/index.html | 4 ++-- app/server/public/js/core.js | 4 ++-- app/server/public/js/sessions.js | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/server/public/index.html b/app/server/public/index.html index bdea29f..ef02698 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -95,8 +95,8 @@ .prof-badge.prof-lab .ic, .prof-badge.prof-zero .ic { color: var(--active); } /* 弹窗模式行:下拉选中(取代纵向选项组,省垂直空间) */ .msw-prof { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: 13px; color: var(--ink); border-top: 1px solid #dde1ea; } - .msw-prof-label { flex: none; } - .msw-prof select { flex: 1; min-width: 0; border: 1px solid #dde1ea; border-radius: 8px; padding: 5px 8px; font-size: 13px; background: #fff; color: var(--ink); } + .msw-prof-label { flex: none; line-height: 30px; } + .msw-prof select { flex: 1; min-width: 0; height: 30px; box-sizing: border-box; border: 1px solid #dde1ea; border-radius: 8px; padding: 0 8px; font-size: 13px; line-height: 28px; background: #fff; color: var(--ink); } /* welcome 头像兼做「选择模型/模式」入口(与聊天态的「选择模型」同一弹窗) */ .logo-badge { cursor: pointer; } diff --git a/app/server/public/js/core.js b/app/server/public/js/core.js index 0d87858..d22607c 100644 --- a/app/server/public/js/core.js +++ b/app/server/public/js/core.js @@ -199,8 +199,8 @@ } // ---------- 会话模式徽标 ---------- - // 会话绑定 profile 时在标题(头部/抽屉行)显示小图标:''=默认不显示;颜色统一 --active(CSS .prof-*),靠形状区分; - // 未知名兑底圆点;tooltip 提示当前模式,不另显文字。 + // 会话绑定 profile 时仅头部标题前显示小图标(抽屉列表不显,避免画蛇添足):''=默认不显示; + // 颜色统一 --active(CSS .prof-*),靠形状区分;未知名兑底圆点;tooltip 提示当前模式,不另显文字。 const PROFILE_BADGES = { lab: '', zero: '', diff --git a/app/server/public/js/sessions.js b/app/server/public/js/sessions.js index 45b27ff..7c06d66 100644 --- a/app/server/public/js/sessions.js +++ b/app/server/public/js/sessions.js @@ -29,7 +29,7 @@ if (g !== lastGroup) { html += '
' + esc(g) + '
'; lastGroup = g; } html += '
' + '' + '