mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #23027] [CLOSED] fix: prevent inconsistent conversation bubble sizes with YAML code block #42610
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/23027
Author: @harshad-dhokane
Created: 3/25/2026
Status: ❌ Closed
Base:
main← Head:fix/inconsistent-bubble-sizes-5975📝 Commits (1)
2e81af2fix: prevent inconsistent conversation bubble sizes with YAML code blocks (#5975)📊 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
…ocks (#5975)
Add overflow-hidden to markdown-prose containers in ResponseMessage, UserMessage, and MultiResponseMessages to prevent code blocks (especially YAML) from expanding the message bubble width beyond the parent max-w constraint in widescreen mode.
The root cause was that min-w-full on the prose container combined with white-space: pre-wrap on pre elements allowed code block content to push bubble widths beyond the parent's max-w-5xl constraint, causing inconsistent resizing during scroll.
Fixes #5975
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.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.