From 4ee6a9af71faceee99fed5eb98538b71772d86c6 Mon Sep 17 00:00:00 2001 From: Pascal Date: Mon, 20 Jul 2026 16:28:43 +0200 Subject: [PATCH] ui: fix collapsed user bubble with markdown rendering (#25869) Edge paragraph margins are now zeroed at the source in markdown-content.css, but the user bubble and the system message still carried the -my-4 compensation for them. The uncompensated negative margins shrank the wrapper 2rem below its content, collapsing single-line user bubbles into a scrollable sliver and skewing the system message expand threshold. --- .../ChatMessage/ChatMessageSystem/ChatMessageSystem.svelte | 5 +---- .../ChatMessage/ChatMessageUser/ChatMessageUserBubble.svelte | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageSystem/ChatMessageSystem.svelte b/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageSystem/ChatMessageSystem.svelte index 9d3d07a273..36798e2283 100644 --- a/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageSystem/ChatMessageSystem.svelte +++ b/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageSystem/ChatMessageSystem.svelte @@ -157,10 +157,7 @@ > {#if currentConfig.renderUserContentAsMarkdown}
- +
{:else} {#if renderMarkdown && currentConfig.renderUserContentAsMarkdown}
- +
{:else}