webui: add responsive chat width option to webui (#18067)#18068
webui: add responsive chat width option to webui (#18067)#18068ImadSaddik wants to merge 87 commits into
Conversation
|
@avidwriter @allozaur @ServeurpersoCom I finally found time to finish this feature. Here are the changes I made to the first version. I need your feedback before I write the e2e tests. We now have two options:
When
When If you open the dropdown, you will find two types of options:
Selecting a predefined width is simple. If the user selects Note If the
Does this make sense? I’m happy to hear your feedback. |
|
Since the "responsive" option works equally well whether enabled or disabled on a smartphone and a PC, I would personally enable it by default all the time (with the front-end default configuration JSON feature that I have to improve), but being able to disable it is also good because short lines are easier to read |
|
So maybe (@allozaur would have to confirm too) we can have just 2 options, responsive for everything, and responsive for the CoT and Thinking sections? |
|
@allozaur @ServeurpersoCom Do I need to include the build artifacts? The PR is ready for review. |
Yes, we add a commit "chore: update webui build output" at the end, in which you have "tools/server/public/bundle.js" I always do the following: cd tools/server/webui Good catch on the menu bugs. There's also a parasitic "-" inside the checkbox if you look closely (requires an MCP server configured to be seen) another PR to simplify the logic of this menu (KISS) is needed. I opened a ticket so I wouldn't forget : #22895 |
|
Btw soon we won't need the static builds in the source anymore |
That's great news! |
|
@ImadSaddik let's come back to this after we've merged #22937 as this will get us free from any potential merge conflicts thanks to removing the static output |
|
@allozaur I will keep an eye on that PR and update this one accordingly. |








Close #18067
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)
Edit: I will continue working on this in the next weekend.