diff --git a/tools/server/public/index.html.gz b/tools/server/public/index.html.gz index 48e341dbd12..e70327a5c1e 100644 Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ diff --git a/tools/server/webui/src/app.css b/tools/server/webui/src/app.css index 2ca1536409b..6f35911d5f6 100644 --- a/tools/server/webui/src/app.css +++ b/tools/server/webui/src/app.css @@ -114,6 +114,9 @@ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-border: var(--sidebar-border); --color-sidebar-ring: var(--sidebar-ring); + --breakpoint-3xl: 120rem; /* 1920px */ + --breakpoint-4xl: 150rem; /* 2400px */ + --breakpoint-5xl: 180rem; /* 2880px */ } @layer base { diff --git a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatForm.svelte b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatForm.svelte index 6c9a11849c3..4af4101f0a0 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatForm.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatForm.svelte @@ -7,6 +7,7 @@ ChatFormHelperText, ChatFormTextarea } from '$lib/components/app'; + import { MAX_WIDTH_CLASSES, DEFAULT_MAX_WIDTH_CLASS } from '$lib/constants/width-classes'; import { INPUT_CLASSES } from '$lib/constants/input-classes'; import { config } from '$lib/stores/settings.svelte'; import { FileTypeCategory, MimeTypeApplication } from '$lib/enums/files'; @@ -62,6 +63,9 @@ let previousIsLoading = $state(isLoading); let recordingSupported = $state(false); let textareaRef: ChatFormTextarea | undefined = $state(undefined); + let maxWidthClass = $derived( + currentConfig.responsiveChatWidth ? MAX_WIDTH_CLASSES : DEFAULT_MAX_WIDTH_CLASS + ); function getAcceptStringForFileType(fileType: FileTypeCategory): string { switch (fileType) { @@ -230,7 +234,7 @@