[GH-ISSUE #194] Horizontal scrolling for code blocks #27501

Closed
opened 2026-04-25 02:12:12 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Phuket2 on GitHub (Dec 8, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/194

Horizontal scrolling for code blocks
The line wrapping in the code blocks makes it very difficult to read Python code in place. I am not sure this is the only way to handle the issue. It is just what the GPT-4 web-ui does.
Personally, it feels as if the margins on either side of the message area could be reduced to allow a bit more growth on larger screens. i.e. I have a 32’ screen, which I don’t get any benefit from. I know the pattern is normal for dynamic content centred on the page. While the proportions seem ok for chat, in my opinion it does not work that well when you have code output.

Originally created by @Phuket2 on GitHub (Dec 8, 2023). Original GitHub issue: https://github.com/open-webui/open-webui/issues/194 **Horizontal scrolling for code blocks** The line wrapping in the code blocks makes it very difficult to read Python code in place. I am not sure this is the only way to handle the issue. It is just what the GPT-4 web-ui does. Personally, it feels as if the margins on either side of the message area could be reduced to allow a bit more growth on larger screens. i.e. I have a 32’ screen, which I don’t get any benefit from. I know the pattern is normal for dynamic content centred on the page. While the proportions seem ok for chat, in my opinion it does not work that well when you have code output.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#27501