mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #24853] fix: prevent inconsistent conversation bubble sizes with YAML code blocks #115198
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24853
Author: @imalkaperera13
Created: 5/17/2026
Status: 🔄 Open
Base:
dev← Head:fix/yaml-codeblock-bubble-resize-5975📝 Commits (3)
7a6e601fix: prevent inconsistent bubble sizes with YAML code blocks in ResponseMessage76aabf9fix: add overflow-hidden to UserMessage markdown containerf0d26fcfix: properly add overflow-hidden to UserMessage markdown container📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+1 -1)📝
src/lib/components/chat/Messages/UserMessage.svelte(+1 -1)📄 Description
## Description
Fixes #5975
When using Open WebUI in widescreen mode, chat bubbles with YAML code blocks resize inconsistently when scrolling. This happens because min-w-full on the markdown-prose container combined with wide code block content (especially YAML with long keys/values) causes the container to expand beyond the parent bubble's max-w constraint.
Root Cause
The markdown-prose container in ResponseMessage.svelte and UserMessage.svelte uses min-w-full which allows code block content (with white-space: pre-wrap) to push the bubble width beyond its parent constraints during scroll/reflow cycles, causing inconsistent resizing.
Fix
Added overflow-hidden to the markdown-prose container div in both:
This constrains content to stay within the bubble boundaries without affecting the visual rendering of code blocks (which scroll horizontally already).
Testing
Checklist
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.