forked from open-webui/open-webui
rf: dom queries in ResponseMessageComponent
This commit is contained in:
parent
cc471597cd
commit
0fc76d46db
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
let edit = false;
|
let edit = false;
|
||||||
let editedContent = '';
|
let editedContent = '';
|
||||||
|
let editElement: HTMLTextAreaElement;
|
||||||
let tooltipInstance = null;
|
let tooltipInstance = null;
|
||||||
|
|
||||||
let sentencesAudio = {};
|
let sentencesAudio = {};
|
||||||
|
@ -247,7 +247,6 @@
|
||||||
editedContent = message.content;
|
editedContent = message.content;
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
const editElement = document.getElementById(`message-edit-${message.id}`);
|
|
||||||
|
|
||||||
editElement.style.height = '';
|
editElement.style.height = '';
|
||||||
editElement.style.height = `${editElement.scrollHeight}px`;
|
editElement.style.height = `${editElement.scrollHeight}px`;
|
||||||
|
@ -341,6 +340,7 @@
|
||||||
<div class=" w-full">
|
<div class=" w-full">
|
||||||
<textarea
|
<textarea
|
||||||
id="message-edit-{message.id}"
|
id="message-edit-{message.id}"
|
||||||
|
bind:this={editElement}
|
||||||
class=" bg-transparent outline-none w-full resize-none"
|
class=" bg-transparent outline-none w-full resize-none"
|
||||||
bind:value={editedContent}
|
bind:value={editedContent}
|
||||||
on:input={(e) => {
|
on:input={(e) => {
|
||||||
|
|
Loading…
Reference in a new issue