mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #24959] [CLOSED] fix: consistent conversation bubble sizes with YAML code blocks #131614
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/24959
Author: @sisyphusse1-ops
Created: 5/20/2026
Status: ❌ Closed
Base:
main← Head:fix/consistent-bubble-sizes-yaml-codeblocks📝 Commits (1)
5eb4e14fix: use min-w-0 instead of min-w-full to prevent inconsistent bubble sizes with code blocks📊 Changes
3 files changed (+3 additions, -3 deletions)
View changed files
📝
src/lib/components/chat/Messages/MultiResponseMessages.svelte(+1 -1)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+1 -1)📝
src/lib/components/chat/Messages/UserMessage.svelte(+1 -1)📄 Description
Summary
Fixes #5975 — In widescreen chat bubble mode, YAML code blocks caused conversation bubbles to resize inconsistently when scrolling.
Root Cause
The message content containers used
min-w-full, which forced them to be at least the full width of their parent. When code blocks (especially YAML) rendered with varying content widths, this caused the bubble to expand and contract inconsistently during scroll as elements entered/left the viewport.Fix
Replace
min-w-fullwithmin-w-0on the markdown-prose wrapper divs in:ResponseMessage.svelteUserMessage.svelteMultiResponseMessages.sveltemin-w-0is the standard fix for preventing flex/grid children from overflowing their container. It allows the content to shrink below its intrinsic minimum width, so code blocks useoverflow-x: auto(already present) instead of pushing the bubble wider.Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.