From d784cf9bea195089ac3c79fa7797229272f1449b Mon Sep 17 00:00:00 2001 From: Imad Saddik Date: Sat, 20 Dec 2025 08:51:27 +0100 Subject: [PATCH] Renamed the settings keys and added a new field in the settings --- .../app/chat/ChatSettings/ChatSettingsDialog.svelte | 9 +++++++-- .../webui/src/lib/constants/settings-config.ts | 12 ++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsDialog.svelte b/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsDialog.svelte index cd4a8cf3c6..6e24b74804 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsDialog.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsDialog.svelte @@ -53,10 +53,15 @@ ] }, { - key: 'responsiveChatWidth', - label: 'Responsive chat width', + key: 'autoChatWidth', + label: 'Automatic width', type: 'checkbox' }, + { + key: 'customChatWidth', + label: 'Custom width', + type: 'combobox' + }, { key: 'showMessageStats', label: 'Show message generation statistics', diff --git a/tools/server/webui/src/lib/constants/settings-config.ts b/tools/server/webui/src/lib/constants/settings-config.ts index d06b3eaaa5..cc1c412acd 100644 --- a/tools/server/webui/src/lib/constants/settings-config.ts +++ b/tools/server/webui/src/lib/constants/settings-config.ts @@ -9,8 +9,8 @@ export const SETTING_CONFIG_DEFAULT: Record = showToolCalls: false, disableReasoningFormat: false, keepStatsVisible: false, - responsiveChatWidth: false, - chatScreenWidth: '', + autoChatWidth: false, + customChatWidth: '', showMessageStats: true, askForTitleConfirmation: false, pasteLongTextToFileLen: 2500, @@ -88,10 +88,10 @@ export const SETTING_CONFIG_INFO: Record = { disableReasoningFormat: 'Show raw LLM output without backend parsing and frontend Markdown rendering to inspect streaming across different models.', keepStatsVisible: 'Keep processing statistics visible after generation finishes.', - responsiveChatWidth: - 'Enable responsive chat width that automatically adapts to your screen size using breakpoints. When enabled, overrides the custom width setting below.', - chatScreenWidth: - 'Set a fixed chat screen width. Choose from predefined sizes (xs to 7xl) or enter a custom pixel value. Only applies when responsive width is disabled.', + autoChatWidth: + 'Automatically adapt the chat width to your screen size. If enabled, this ignores the custom width setting.', + customChatWidth: + 'Set a specific width for the chat. You can use presets (xs to 7xl) or type a pixel value (e.g. 800).', showMessageStats: 'Display generation statistics (tokens/second, token count, duration) below each assistant message.', askForTitleConfirmation: