diff --git a/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte b/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte index 83621b5ecc..cfec386ba3 100644 --- a/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte +++ b/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte @@ -4,6 +4,8 @@ import type { ContextElement } from './context' import AvailableContextList from './AvailableContextList.svelte' import { aiChatManager } from './AIChatManager.svelte' + import Portal from '$lib/components/Portal.svelte' + import { zIndexes } from '$lib/zIndexes' interface Props { availableContext: ContextElement[] @@ -361,22 +363,24 @@ {#if showContextTooltip} -
- { - handleContextSelection(element) - }} - showAllAvailable={true} - stringSearch={contextTooltipWord.slice(1)} - selectedIndex={selectedSuggestionIndex} - /> -
+ +
+ { + handleContextSelection(element) + }} + showAllAvailable={true} + stringSearch={contextTooltipWord.slice(1)} + selectedIndex={selectedSuggestionIndex} + /> +
+
{/if}