mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #21635] [CLOSED] fix: consistent bubble sizes with YAML code blocks in widescreen #65029
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/21635
Author: @hztBUAA
Created: 2/20/2026
Status: ❌ Closed
Base:
main← Head:fix/yaml-code-block-bubble-size📝 Commits (1)
e38d70efix: consistent conversation bubble sizes with YAML code blocks in widescreen mode📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/CodeBlock.svelte(+1 -1)📄 Description
Summary
Fixes #5975
In widescreen mode, conversation bubbles resize inconsistently when messages contain YAML (or other long-line) code blocks. This happens because the code block's outer
<div>wrapper has no width or overflow constraints, allowing the intrinsic width of long code lines to propagate up and influence the parent bubble's layout during scroll reflows.Changes
max-w-full overflow-hiddento the outermost<div>ofCodeBlock.sveltemax-w-fullensures the code block never exceeds its parent container's widthoverflow-hiddenprevents code content from expanding the bubble; the inner<pre>element already provides horizontal scrolling viaoverflow-x-autoTest Plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.