mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-29 12:34:58 -05:00
[GH-ISSUE #5975] Inconsistent Conversation Bubble Sizes with YAML Code Blocks in Widescreen Mode #117504
Reference in New Issue
Block a user
Originally created by @lehhair on GitHub (Oct 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5975
Bug Report
Installation Method:
docker
Environment:
Confirmation:
Expected Behavior:
When scrolling the page in widescreen mode, the size of the conversation bubbles should remain consistent.
Actual Behavior:
In widescreen mode, when the chat includes YAML code blocks, the size of the conversation bubbles changes inconsistently when scrolling up and down.
Bug Summary:
When scrolling in widescreen mode, if the chat includes YAML code blocks, the size of the conversation bubbles changes inconsistently.
Reproduction Details:
Reproduction Steps:
@lehhair commented on GitHub (Oct 25, 2024):
Perhaps it is caused by the display of new code blocks, which will reappear in many cases.
@lehhair commented on GitHub (Dec 8, 2024):
Until the latest version this problem still exists, and I found that code blocks are not colored when writing
py instead ofpython, hopefully this can be optimized!@geniusjoelraj commented on GitHub (Jul 27, 2025):
Hey I can work on this, Is this still relevant?
@anugrahrk commented on GitHub (Aug 23, 2025):
resolved? if not i can work on this.
@silentoplayz commented on GitHub (Oct 21, 2025):
I confirmed this issue internally last month, but only just now stumbled across this issue post based on the title. I clicked upon it and knew it was an instant match of the same issue I reported. Turns out your issue post opened up here is actually 1 year older though!
To add more context about this issue, I believe both
Chat Bubble UIandWidescreen ModeUI options need to be toggled on within theInterfaceuser settings to see the code blocks resize issue described. The resizing of code blocks only happens while scrolling through code blocks previously provided in my queries sent to the model within a chat. This issue should still be reproducible.@geniusjoelraj, @anugrahrk This issue has not been resolved yet and a PR is definitely welcome!
@tysoncung commented on GitHub (Dec 12, 2025):
I'm interested in working on this issue. Could you provide more context about what you're looking for? Any additional details about requirements or constraints would be helpful.
@theamodhshetty commented on GitHub (Feb 24, 2026):
I opened a fix PR for this: #21819.
Summary:
This keeps bubble widths stable while scrolling in widescreen mode with code blocks.
@PHclaw commented on GitHub (Apr 29, 2026):
For the inconsistent conversation bubble sizes with YAML code blocks:
This is a CSS issue. YAML code blocks don't have the same max-width constraint as regular text. Fix:
Also add a
white-space: pre-wrapfor YAML specifically to handle long lines gracefully.@Parthpatel307 commented on GitHub (May 7, 2026):
Hi, I'd like to work on this issue. I’m currently investigating and will try to submit a fix.
@linliang-bot commented on GitHub (May 13, 2026):
This looks like a flex sizing issue rather than a YAML-specific rendering problem.
The message content containers currently use
min-w-full, which is likely too strong in widescreen bubble mode when code blocks are present. Switching those containers tomin-w-0appears to resolve the width shifts while scrolling.I’m putting together a minimal PR with just that change.
@Quantum0uasar commented on GitHub (May 18, 2026):
Hi! I'd like to work on this bug. The inconsistent bubble width with YAML code blocks in widescreen mode sounds like a CSS/layout constraint issue — likely the
max-widthor flex behavior isn't being applied consistently when code blocks are rendered. I have experience with frontend work (React/Svelte, CSS) and would be happy to dig into the stylesheet and submit a fix. Would it be okay if I take this on?