mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
rf: dom queries in ResponseMessageComponent
This commit is contained in:
parent
cc471597cd
commit
0fc76d46db
@ -40,7 +40,7 @@
|
||||
|
||||
let edit = false;
|
||||
let editedContent = '';
|
||||
|
||||
let editElement: HTMLTextAreaElement;
|
||||
let tooltipInstance = null;
|
||||
|
||||
let sentencesAudio = {};
|
||||
@ -247,7 +247,6 @@
|
||||
editedContent = message.content;
|
||||
|
||||
await tick();
|
||||
const editElement = document.getElementById(`message-edit-${message.id}`);
|
||||
|
||||
editElement.style.height = '';
|
||||
editElement.style.height = `${editElement.scrollHeight}px`;
|
||||
@ -341,6 +340,7 @@
|
||||
<div class=" w-full">
|
||||
<textarea
|
||||
id="message-edit-{message.id}"
|
||||
bind:this={editElement}
|
||||
class=" bg-transparent outline-none w-full resize-none"
|
||||
bind:value={editedContent}
|
||||
on:input={(e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user