mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 23:02:25 +00:00
fix: textarea input height issue
This commit is contained in:
parent
c567185cb1
commit
2a5506a9cd
@ -888,11 +888,10 @@
|
|||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
// Reset chat input textarea
|
// Reset chat input textarea
|
||||||
const chatInputContainer = document.getElementById('chat-input-container');
|
const chatInputElement = document.getElementById('chat-input');
|
||||||
|
|
||||||
if (chatInputContainer) {
|
if (chatInputElement) {
|
||||||
chatInputContainer.value = '';
|
chatInputElement.style.height = '';
|
||||||
chatInputContainer.style.height = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const _files = JSON.parse(JSON.stringify(files));
|
const _files = JSON.parse(JSON.stringify(files));
|
||||||
|
@ -881,7 +881,6 @@
|
|||||||
on:input={async (e) => {
|
on:input={async (e) => {
|
||||||
e.target.style.height = '';
|
e.target.style.height = '';
|
||||||
e.target.style.height = Math.min(e.target.scrollHeight, 200) + 'px';
|
e.target.style.height = Math.min(e.target.scrollHeight, 200) + 'px';
|
||||||
user = null;
|
|
||||||
}}
|
}}
|
||||||
on:focus={async (e) => {
|
on:focus={async (e) => {
|
||||||
e.target.style.height = '';
|
e.target.style.height = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user