From 3ab37aedfed642213c1878ecb46cb3770a3b50a3 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Tue, 27 Oct 2026 12:19:02 +0100 Subject: [PATCH] ui: fix system message row stretching to full prompt height in WebKit (#31246) The expand button wrapping the system message card defaulted to inline-block. WebKit takes an inline-block's baseline from its last line even when that line is clipped by the card's max-height, so the row grew to the height of the whole prompt and left a large empty gap below the card. Make the button a block so the row matches the card. Assisted-by: Claude (Opus 5.5 Medium) --- .../ChatMessage/ChatMessageSystem/ChatMessageSystem.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 98bfa2e11..0c5d8fd7c 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 @@ -118,7 +118,7 @@ {#if message.content.trim()}