mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #24960] [CLOSED] fix: consistent YAML code block bubble sizing #131615
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/24960
Author: @sisyphusse1-ops
Created: 5/20/2026
Status: ❌ Closed
Base:
dev← Head:fix/consistent-bubble-sizes-yaml-codeblocks📝 Commits (10+)
fe6783cMerge pull request #19030 from open-webui/devfc05e0aMerge pull request #19405 from open-webui/deve3faec6Merge pull request #19416 from open-webui/dev9899293Merge pull request #19448 from open-webui/dev140605eMerge pull request #19462 from open-webui/dev6f1486fMerge pull request #19466 from open-webui/devd95f533Merge pull request #19729 from open-webui/deva7271530.6.43 (#20093)6adde20Merge pull request #20394 from open-webui/devf9b0534Merge pull request #20522 from open-webui/dev📊 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 — YAML code blocks caused inconsistent conversation bubble sizing in widescreen chat bubble mode.
Root Cause
The markdown wrapper used
min-w-full, forcing message content to be at least the full width of its parent. Code blocks have intrinsic widths and horizontal overflow behavior, so this could make bubbles expand/contract while scrolling.Fix
Replaced
min-w-fullwithmin-w-0in the markdown wrapper for:src/lib/components/chat/Messages/ResponseMessage.sveltesrc/lib/components/chat/Messages/UserMessage.sveltesrc/lib/components/chat/Messages/MultiResponseMessages.sveltemin-w-0lets the wrapper shrink within its flex/grid container while code blocks keep using their existing horizontal overflow handling.Testing
npm run format; it reported pre-existing formatting differences in untouched files, no formatter changes committed.Contributor License Agreement
Keep the "Contributor License Agreement" confirmation text intact.
Deleting it will trigger the CLA-Bot to INVALIDATE your PR.
Your PR will NOT be reviewed or merged until you check the box below confirming that you have read and agree to the terms of the CLA.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.