From 1326f9b6720deb46af7bfeaaecd5224a8112cd4c Mon Sep 17 00:00:00 2001 From: Rick Ye Date: Fri, 11 Sep 2026 15:29:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(settings):=20=E6=8F=92=E4=BB=B6=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E9=A1=B5=E5=A4=B4=E9=83=A8=E8=A1=A5=E5=B1=82=E7=BA=A7?= =?UTF-8?q?=E2=80=94=E2=80=94=E9=9D=A2=E5=8C=85=E5=B1=91=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=B1=82=20+=20=E5=A4=A7=E6=A0=87=E9=A2=98=20+=20=E5=85=83?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../renderer/src/components/SettingsModal.tsx | 47 +++++++++++++------ 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/apps/desktop/src/renderer/src/components/SettingsModal.tsx b/apps/desktop/src/renderer/src/components/SettingsModal.tsx index 649128a..1a47515 100644 --- a/apps/desktop/src/renderer/src/components/SettingsModal.tsx +++ b/apps/desktop/src/renderer/src/components/SettingsModal.tsx @@ -1543,20 +1543,39 @@ export function SettingsModal({
{tab.startsWith('plugin:') ? ( - // 二级页顶部:面包屑导航(shadcn Breadcrumb 语义——上级可点、ChevronRight 分隔、当前页前景色不可点) - + // 二级页顶部:面包屑(导航层,shadcn 语义——上级可点、ChevronRight 分隔、当前页仅标记) + // + 页标题(与一级页同级 16px semibold)+ 元数据行(来源 · 版本) + (() => { + const info = plugins.find((p) => `plugin:${p.manifest.id}` === tab) + const originLabel = + !info || info.source === 'builtin' ? '内置' : info.origin === 'project' ? '项目' : '全局' + return ( +
+ +
+ {info && } +
{info?.manifest.name ?? '插件'}
+
+ {info && ( +
+ {originLabel}插件 · v{info.manifest.version} +
+ )} +
+ ) + })() ) : (
{meta.title}