Skip to content

Commit 232eba9

Browse files
committed
Added a new setting to control the width of elements based on the screen size
1 parent 2376b77 commit 232eba9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsDialog.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@
5353
]
5454
},
5555
{
56+
key: 'responsiveChatWidth',
57+
label: 'Responsive chat width',
58+
type: 'checkbox'
59+
},
60+
{
5661
key: 'showMessageStats',
5762
label: 'Show message generation statistics',
5863
type: 'checkbox'

tools/server/webui/src/lib/constants/settings-config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const SETTING_CONFIG_DEFAULT: Record<string, string | number | boolean> =
99
showToolCalls: false,
1010
disableReasoningFormat: false,
1111
keepStatsVisible: false,
12+
responsiveChatWidth: false,
1213
showMessageStats: true,
1314
askForTitleConfirmation: false,
1415
pasteLongTextToFileLen: 2500,
@@ -86,6 +87,8 @@ export const SETTING_CONFIG_INFO: Record<string, string> = {
8687
disableReasoningFormat:
8788
'Show raw LLM output without backend parsing and frontend Markdown rendering to inspect streaming across different models.',
8889
keepStatsVisible: 'Keep processing statistics visible after generation finishes.',
90+
responsiveChatWidth:
91+
'Enable responsive chat width that adapts to your screen size. When disabled, uses a fixed width optimized for readability.',
8992
showMessageStats:
9093
'Display generation statistics (tokens/second, token count, duration) below each assistant message.',
9194
askForTitleConfirmation:

0 commit comments

Comments
 (0)