From 50acdb09de84c8a6b52c6e0bbff4c1c1a7ce6f13 Mon Sep 17 00:00:00 2001 From: Carlos Daniel Vilaseca Date: Sun, 3 Mar 2024 17:40:18 -0500 Subject: [PATCH] fix: better variable names --- .../chat/Messages/ResponseMessage.svelte | 8 ++++---- .../components/chat/Messages/UserMessage.svelte | 12 ++++++------ .../components/playground/ChatCompletion.svelte | 16 ++++++++-------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index a0b7af2f..f1237f77 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -40,7 +40,7 @@ let edit = false; let editedContent = ''; - let editElement: HTMLTextAreaElement; + let editTextAreaElement: HTMLTextAreaElement; let tooltipInstance = null; let sentencesAudio = {}; @@ -248,8 +248,8 @@ await tick(); - editElement.style.height = ''; - editElement.style.height = `${editElement.scrollHeight}px`; + editTextAreaElement.style.height = ''; + editTextAreaElement.style.height = `${editTextAreaElement.scrollHeight}px`; }; const editMessageConfirmHandler = async () => { @@ -340,7 +340,7 @@