From 823dd26a96e1d141884264e40babb52ccdad0615 Mon Sep 17 00:00:00 2001 From: Rick Ye Date: Fri, 11 Sep 2026 10:52:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=92=E4=BB=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E5=8A=A0=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE=EF=BC=9B?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20string/number=20=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=20w-full=20=E8=A6=86=E7=9B=96=E5=AE=9A=E5=AE=BD?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=20label=20=E8=A2=AB=E6=8C=A4=E6=88=90?= =?UTF-8?q?=E7=AB=96=E6=8E=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../renderer/src/components/SettingsModal.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/renderer/src/components/SettingsModal.tsx b/apps/desktop/src/renderer/src/components/SettingsModal.tsx index 5b6d428..dc9a421 100644 --- a/apps/desktop/src/renderer/src/components/SettingsModal.tsx +++ b/apps/desktop/src/renderer/src/components/SettingsModal.tsx @@ -2,6 +2,7 @@ import { memo, useEffect, useMemo, useRef, useState, useTransition, type ReactNo import type { JSX, RefObject } from 'react' import { useVirtualizer } from '@tanstack/react-virtual' import { + LuArrowLeft, LuCheck, LuCpu, LuFolderOpen, @@ -878,8 +879,9 @@ function PluginSettingsForm({ } } + // 注意不要写 w-full:string/number 控件要定宽(w-56/w-28)跟 label 同行,w-full 会把 label 挤成竖排 const inputCls = - 'w-full rounded-control border border-line-strong bg-surface px-2.5 py-1.5 text-[12px] text-ink outline-none placeholder:text-ink-3 focus:border-ink-3' + 'rounded-control border border-line-strong bg-surface px-2.5 py-1.5 text-[12px] text-ink outline-none placeholder:text-ink-3 focus:border-ink-3' return (
@@ -953,7 +955,7 @@ function PluginSettingsForm({ value={typeof value === 'string' ? value : ''} placeholder={item.placeholder} onChange={(e) => onChange(item.key, e.target.value)} - className={`${inputCls} mt-2 resize-y font-mono`} + className={`${inputCls} mt-2 w-full resize-y font-mono`} />
) @@ -1389,6 +1391,16 @@ export function SettingsModal({ {/* 右侧:内容页 */}
+ {tab.startsWith('plugin:') && ( + + )}
{meta.title}
{meta.desc &&
{meta.desc}
}