mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #22366] [CLOSED] fix: prevent code blocks from causing message bubble width inconsistency in widescreen #65493
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/22366
Author: @realsamrat
Created: 3/7/2026
Status: ❌ Closed
Base:
dev← Head:fix/yaml-codeblock-bubble-width📝 Commits (1)
594c09afix: prevent code blocks from causing message bubble width inconsistency📊 Changes
2 files changed (+5 additions, -5 deletions)
View changed files
📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+2 -2)📝
src/lib/components/chat/Messages/UserMessage.svelte(+3 -3)📄 Description
Pull Request Checklist
devbranch.dev(1 commit ahead of upstream).Changelog Entry
Description
Fixes inconsistent message bubble widths when scrolling through conversations containing YAML (or other wide) code blocks in widescreen mode.
Root cause:
min-w-fullon flex children forces a minimum width equal to the parent container. Withoutmin-w-0, flex children cannot shrink below their intrinsic content size — so wide code blocks push the bubble container wider than intended, causing layout reflow on scroll.Fixed
ResponseMessage.svelte: replacedmin-w-fullwithmin-w-0on message content containers; addedmin-w-0to flex wrapperUserMessage.svelte: same fix applied to user bubble and edit containersAdditional Information
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.