mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #23025] [CLOSED] fix: prevent inconsistent conversation bubble sizes with YAML code bl… #26978
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/23025
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
Summary
Fixes #5975 — Conversation bubbles resize inconsistently when scrolling in widescreen mode with YAML code blocks.
Root Cause
The
min-w-fullon the markdown-prose container combined withwhite-space: pre-wraponpreelements allowed code block content to push bubble widths beyond the parent'smax-w-5xlconstraint, causing inconsistent resizing during scroll.Fix
Added
overflow-hiddento the markdown-prose container divs in:ResponseMessage.svelteUserMessage.svelteMultiResponseMessages.svelteThis prevents code block content from expanding the bubble width beyond the parent container's max-width constraint. The code blocks themselves already have
overflow-x-autointernally for horizontal scrolling of long lines.Testing
overflow-hiddenon the prose container is a standard CSS containment pattern that breaks the intrinsic size feedback loop without affecting normal content rendering🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.