From 7129cc1d843b35516428c61af413b3815aee2e3b Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 14 Oct 2026 10:29:13 -0400 Subject: [PATCH] fix: the Ask and Explain popup is no longer cut off at the bottom of a reply (#32330) --- .../ContentRenderer/FloatingButtons.svelte | 12 +++- .../chat/Messages/ContentRenderer.svelte | 58 ++++++++++--------- 2 files changed, 42 insertions(+), 28 deletions(-) diff --git a/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte b/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte index 49dfb383ee..51ab409edf 100644 --- a/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte +++ b/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte @@ -16,6 +16,15 @@ let selectedText = ''; let floatingInputValue = ''; + const portal = (node: HTMLElement) => { + document.body.appendChild(node); + return { + destroy() { + node.remove(); + } + }; + }; + $: DEFAULT_ACTIONS = [ { id: 'ask', @@ -82,8 +91,9 @@