From 0fe9349b616940b707b4913ab0a45a3381f9fc26 Mon Sep 17 00:00:00 2001 From: silentoplayz Date: Mon, 12 Oct 2026 23:04:05 -0400 Subject: [PATCH] fix: the Ask and Explain popup is no longer cut off at the bottom of a reply --- .../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 e36781e090..7caa36e0c7 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 @@