mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #21819] fix: stabilize chat bubble width with YAML code blocks in widescreen mode #49341
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/21819
Author: @theamodhshetty
Created: 2/24/2026
Status: 🔄 Open
Base:
dev← Head:codex/fix-yaml-bubble-width-5975📝 Commits (1)
6196663fix: stabilize chat bubble width for code blocks in widescreen📊 Changes
4 files changed (+5 additions, -5 deletions)
View changed files
📝
src/lib/components/chat/Messages/Message.svelte(+1 -1)📝
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(+2 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.npx prettier --check ...) and frontend test command (npm run test:frontend, no tests discovered in this local run). Added reproducible before/after steps below.devwith a single logical change.fix:.Fixes #5975
This patch addresses chat bubble width instability in widescreen mode when messages include long YAML code blocks.
What changed:
min-w-0to the message list item container inMessage.svelte.min-w-fullwithmin-w-0in markdown wrappers used by:UserMessage.svelteResponseMessage.svelteMultiResponseMessages.sveltemin-w-0to the user chat bubble wrapper when chat bubbles are enabled.Why this fixes the issue:
min-width: auto/overly restrictive min widths can force expansion based on content width (e.g., wide code lines), which causes width jitter during render/scroll updates.min-w-0allows the containers to shrink within their parent and keeps bubble sizing stable as content is measured and reflowed.Reproduction steps:
Before:
After:
Changelog Entry
Description
Added
Changed
min-w-fulltomin-w-0where appropriate.Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
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.