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 @@