From ed3ea90576296b199744802b47c7cc6fb7bbee73 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Fri, 25 Sep 2026 13:26:39 +0800 Subject: [PATCH] fix(web): quiet settings labels to match the navigation Keep card titles at 14px semibold. Setting names and the settings navigation use 12px at regular weight, without shrinking the rows. --- apps/web/src/components/SettingsPane.tsx | 8 ++++---- apps/web/src/components/plugins/PluginSettingsSection.tsx | 2 +- apps/web/src/components/settings/AiModelCard.tsx | 2 +- apps/web/src/components/settings/AiPromptsCard.tsx | 2 +- apps/web/src/components/settings/AiProviderCard.tsx | 2 +- apps/web/src/components/settings/ObjectStorageCard.tsx | 4 ++-- apps/web/src/components/settings/PasswordCard.tsx | 6 +++--- apps/web/src/components/settings/UserManagementCard.tsx | 8 ++++---- apps/web/src/components/settings/settings-ui.ts | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsx index 72dfc7ba..1f2955a1 100644 --- a/apps/web/src/components/SettingsPane.tsx +++ b/apps/web/src/components/SettingsPane.tsx @@ -304,7 +304,7 @@ export const SettingsPane = ({ type="button" onClick={() => setActiveTab(item.key)} className={cn( - "flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-sm font-semibold transition-all duration-150 text-left w-full", + "flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-xs font-normal leading-5 transition-all duration-150 text-left w-full", isSelected ? `${item.colorClass} ${item.bgColorClass}` : "text-slate-600 hover:bg-slate-200/50 hover:text-slate-900" @@ -352,7 +352,7 @@ export const SettingsPane = ({
- {t("nav.templates")} + {t("nav.templates")} @@ -365,7 +365,7 @@ export const SettingsPane = ({
- {t("nav.prompts")} + {t("nav.prompts")} @@ -384,7 +384,7 @@ export const SettingsPane = ({
- {item.label} + {item.label} {item.badge ? ( {item.badge} diff --git a/apps/web/src/components/plugins/PluginSettingsSection.tsx b/apps/web/src/components/plugins/PluginSettingsSection.tsx index 3f8204e5..3d919038 100644 --- a/apps/web/src/components/plugins/PluginSettingsSection.tsx +++ b/apps/web/src/components/plugins/PluginSettingsSection.tsx @@ -52,7 +52,7 @@ const PluginSettingListDialog = ({ field }: { field: PluginSettingField }) => {
    {list.items.map((item, index) => (
  • -
    {item.title}
    +
    {item.title}
    {item.description ?
    {item.description}
    : null}
  • ))} diff --git a/apps/web/src/components/settings/AiModelCard.tsx b/apps/web/src/components/settings/AiModelCard.tsx index e8021756..3493f90f 100644 --- a/apps/web/src/components/settings/AiModelCard.tsx +++ b/apps/web/src/components/settings/AiModelCard.tsx @@ -297,7 +297,7 @@ export const AiModelCard = () => { }; const Field = ({ label, hint, children }: { label: string; hint?: string; children: ReactNode }) => ( -