"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "1bfcd801b798c21b65623f353168fe83b0ec6260"
Commit 534ba9e4 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: message edit textarea height

parent 34b6a996
...@@ -344,6 +344,7 @@ ...@@ -344,6 +344,7 @@
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) => {
e.target.style.height = '';
e.target.style.height = `${e.target.scrollHeight}px`; e.target.style.height = `${e.target.scrollHeight}px`;
}} }}
/> />
......
...@@ -168,7 +168,8 @@ ...@@ -168,7 +168,8 @@
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) => {
messageEditTextAreaElement.style.height = `${messageEditTextAreaElement.scrollHeight}px`; e.target.style.height = '';
e.target.style.height = `${e.target.scrollHeight}px`;
}} }}
/> />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment