webui: add responsive chat width option to webui (#18067) #18068
+47
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses issue #18067 by introducing a "Responsive chat width" option in the Web UI settings.
Currently, the chat interface has a fixed maximum width (
48rem), which results in significant unused screen space on large monitors (2K, 4K, ultrawide). This change allows users to opt in to a wider layout that scales better with higher resolutions.Changes
responsiveChatWidthto the settings dialog.false(maintains existing behavior).3xl(1920px),4xl(2400px), and5xl(2880px) breakpoints inapp.cssto target high-resolution displays specifically.ChatScreenChatMessagesChatMessageAssistantChatFormChatProcessingInfoMAX_WIDTH_CLASSESare a starting point. I am happy to adjust them if the layout feels too wide or too narrow on specific screens.Screenshots
Captured on a 2K display.
Captured on a 1K display.
How to Test
Motivation
On 2K and 4K screens, the previous fixed width used only a small percentage of the available viewport (~30% on 2K and ~20% on 4K)