From d22974618c56d790cae68bec12d8acd1dcdb0dfe Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:44:41 +0200 Subject: [PATCH] ai chat textarea caret wrong positionning (#5964) * fix textarea caret * rename style --- .../copilot/chat/ContextTextarea.svelte | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte b/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte index 65e97b526e..83621b5ecc 100644 --- a/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte +++ b/frontend/src/lib/components/copilot/chat/ContextTextarea.svelte @@ -333,11 +333,8 @@
-
- +
+ {@html getHighlightedText(aiChatManager.instructions)}
@@ -355,7 +352,7 @@ }, 200) }} placeholder={isFirstMessage ? 'Ask anything' : 'Ask followup'} - class="resize-none bg-transparent caret-black dark:caret-white" + class="textarea-input resize-none bg-transparent caret-black dark:caret-white" style={aiChatManager.instructions.length > 0 ? 'color: transparent; -webkit-text-fill-color: transparent;' : ''} @@ -381,3 +378,17 @@ />
{/if} + +