mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22785] [CLOSED] fix: prevent inconsistent bubble sizes with code blocks in widescreen mode #49913
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/22785
Author: @tysoncung
Created: 3/18/2026
Status: ❌ Closed
Base:
main← Head:fix/inconsistent-bubble-sizes-yaml-5975📝 Commits (1)
9eba093fix: prevent inconsistent bubble sizes with code blocks in widescreen mode📊 Changes
3 files changed (+5 additions, -5 deletions)
View changed files
📝
src/lib/components/chat/Messages/MultiResponseMessages.svelte(+1 -1)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+2 -2)📝
src/lib/components/chat/Messages/UserMessage.svelte(+2 -2)📄 Description
Description
Fixes #5975
This PR fixes the inconsistent conversation bubble sizes when scrolling in widescreen mode with YAML code blocks (or any wide code content).
Problem
When scrolling the page with code blocks containing wide content (like YAML), the conversation bubble container was changing size inconsistently. This was caused by the browser recalculating flex layout dimensions as
overflow-x: autocontent was measured during scroll.Solution
Added
min-w-0(min-width: 0) to flex containers that hold message content. This is a standard CSS technique to prevent flex items from expanding beyond their flex basis when they contain overflow content.Changes
min-w-0to flex containersmin-w-0to flex containersmin-w-fulltomin-w-0for proper overflow constraintTesting
The fix maintains the intended behavior:
max-w-5xlconstraint works correctlymax-w-fullworks correctlyTechnical Details
The
min-w-0utility prevents flex children from overriding their parent's width constraints when they contain wide scrollable content. Without it, flexbox allows items to grow beyond their container to accommodate content, causing layout shifts during scroll.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.