From e0354b09c0e1d9a135afc2fd18685ddca2b6bb89 Mon Sep 17 00:00:00 2001 From: Ananovo Date: Sat, 15 Aug 2026 11:14:12 +0800 Subject: [PATCH] fix(web): align new-session and settings controls (#1578) --- .../components/NewSession/ActionButtons.tsx | 2 +- web/src/components/NewSession/index.tsx | 2 +- .../components/settings/CompanionPairing.tsx | 2 +- .../components/settings/SettingsPrimitives.tsx | 2 +- .../settings/TranscriptionProviderOnboard.tsx | 2 +- .../settings/VoiceAdvancedControls.tsx | 16 ++++++++-------- web/src/routes/settings/storage.tsx | 18 ++++++++++-------- 7 files changed, 23 insertions(+), 21 deletions(-) diff --git a/web/src/components/NewSession/ActionButtons.tsx b/web/src/components/NewSession/ActionButtons.tsx index 00b6b9f8..44728fa6 100644 --- a/web/src/components/NewSession/ActionButtons.tsx +++ b/web/src/components/NewSession/ActionButtons.tsx @@ -13,7 +13,7 @@ export function ActionButtons(props: { const { t } = useTranslation() return ( -
+
diff --git a/web/src/components/settings/SettingsPrimitives.tsx b/web/src/components/settings/SettingsPrimitives.tsx index b695cdc2..4bc32f91 100644 --- a/web/src/components/settings/SettingsPrimitives.tsx +++ b/web/src/components/settings/SettingsPrimitives.tsx @@ -29,7 +29,7 @@ export function CheckIcon(props: { className?: string }) { export function SettingsPageContent(props: { description?: string; children: ReactNode }) { return ( -
+
{props.description ?

{props.description}

: null}
diff --git a/web/src/components/settings/TranscriptionProviderOnboard.tsx b/web/src/components/settings/TranscriptionProviderOnboard.tsx index d1ce8aeb..a374011b 100644 --- a/web/src/components/settings/TranscriptionProviderOnboard.tsx +++ b/web/src/components/settings/TranscriptionProviderOnboard.tsx @@ -291,7 +291,7 @@ export function TranscriptionProviderOnboard(props: { {error ?

{error}

: null} {message ?

{message}

: null} -
+
diff --git a/web/src/components/settings/VoiceAdvancedControls.tsx b/web/src/components/settings/VoiceAdvancedControls.tsx index b3c4f8cd..1eded3cb 100644 --- a/web/src/components/settings/VoiceAdvancedControls.tsx +++ b/web/src/components/settings/VoiceAdvancedControls.tsx @@ -130,14 +130,14 @@ export function VoicePersonaControls(props: { onChange={(e) => setIdentity(e.target.value === DEFAULT_VOICE_IDENTITY ? '' : e.target.value)} rows={6} maxLength={VOICE_IDENTITY_MAX_LENGTH} spellCheck={false} className="w-full resize-y rounded-md border border-[var(--app-border)] bg-[var(--app-bg)] px-2 py-2 font-mono text-xs leading-relaxed text-[var(--app-fg)]" /> -
+
+ + {prefs.identity.trim() ? props.t('settings.voice.identity.customized') : props.t('settings.voice.identity.default')} + - - {prefs.identity.trim() ? props.t('settings.voice.identity.customized') : props.t('settings.voice.identity.default')} -
)} @@ -156,7 +156,7 @@ export function VoicePersonaControls(props: { onChange={(e) => setCharacter(e.target.value === DEFAULT_VOICE_CHARACTER ? '' : e.target.value)} rows={8} maxLength={VOICE_CHARACTER_MAX_LENGTH} spellCheck={false} className="w-full resize-y rounded-md border border-[var(--app-border)] bg-[var(--app-bg)] px-2 py-2 font-mono text-xs leading-relaxed text-[var(--app-fg)]" /> -
+
{deliveryOpen && ( -
-

+

+

{props.t('settings.voice.character.presetSlidersHint')}

-