"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "c5692808066f0b57cc28d6f80e1e9333e156e753"
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 @@
class=" bg-transparent outline-none w-full resize-none"
bind:value={editedContent}
on:input={(e) => {
e.target.style.height = '';
e.target.style.height = `${e.target.scrollHeight}px`;
}}
/>
......
......@@ -168,7 +168,8 @@
class=" bg-transparent outline-none w-full resize-none"
bind:value={editedContent}
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