From 36f334f4aff1f5132c5dda2ff242cc32b3f914e2 Mon Sep 17 00:00:00 2001 From: Imad Saddik Date: Sat, 3 Jan 2026 08:40:21 +0100 Subject: [PATCH] Put the constant into constants/chat-width.ts --- .../ChatSettingsComboboxCustomWidth.svelte | 8 +++-- .../webui/src/lib/constants/chat-width.ts | 28 ++++++++++++++++++ .../server/webui/src/lib/utils/chat-width.ts | 29 +------------------ 3 files changed, 35 insertions(+), 30 deletions(-) create mode 100644 tools/server/webui/src/lib/constants/chat-width.ts diff --git a/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsComboboxCustomWidth.svelte b/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsComboboxCustomWidth.svelte index 90dd0e6440..9fc47cd8db 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsComboboxCustomWidth.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsComboboxCustomWidth.svelte @@ -6,7 +6,11 @@ import { Input } from '$lib/components/ui/input'; import { cn } from '$lib/components/ui/utils'; import { tick } from 'svelte'; - import { CUSTOM_WIDTH_PRESETS, MIN_CUSTOM_WIDTH, MAX_CUSTOM_WIDTH } from '$lib/utils/chat-width'; + import { + CUSTOM_WIDTH_PRESETS, + MIN_CUSTOM_WIDTH, + MAX_CUSTOM_WIDTH + } from '$lib/constants/chat-width'; interface Props { value: string; @@ -148,7 +152,7 @@ {#if isEditing} -
+