mirror of
https://github.com/open-webui/open-webui
synced 2025-05-24 14:54:33 +00:00
fix: firefox input height issue
This commit is contained in:
parent
4b1899bfca
commit
74da9c4e54
@ -895,7 +895,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
taskId = null
|
taskId = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
const chatActionHandler = async (chatId, actionId, modelId, responseMessageId, event = null) => {
|
const chatActionHandler = async (chatId, actionId, modelId, responseMessageId, event = null) => {
|
||||||
@ -1285,12 +1285,13 @@
|
|||||||
prompt = '';
|
prompt = '';
|
||||||
|
|
||||||
// Reset chat input textarea
|
// Reset chat input textarea
|
||||||
const chatInputElement = document.getElementById('chat-input');
|
if (!($settings?.richTextInput ?? true)) {
|
||||||
|
const chatInputElement = document.getElementById('chat-input');
|
||||||
|
|
||||||
if (chatInputElement) {
|
if (chatInputElement) {
|
||||||
await tick();
|
await tick();
|
||||||
chatInputElement.style.height = '';
|
chatInputElement.style.height = '';
|
||||||
chatInputElement.style.height = Math.min(chatInputElement.scrollHeight, 320) + 'px';
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const _files = JSON.parse(JSON.stringify(files));
|
const _files = JSON.parse(JSON.stringify(files));
|
||||||
|
@ -45,9 +45,10 @@
|
|||||||
if (inputValue.length > 500) {
|
if (inputValue.length > 500) {
|
||||||
filteredPrompts = [];
|
filteredPrompts = [];
|
||||||
} else {
|
} else {
|
||||||
const newFilteredPrompts = inputValue.trim()
|
const newFilteredPrompts =
|
||||||
? fuse.search(inputValue.trim()).map((result) => result.item)
|
inputValue.trim() && fuse
|
||||||
: sortedPrompts;
|
? fuse.search(inputValue.trim()).map((result) => result.item)
|
||||||
|
: sortedPrompts;
|
||||||
|
|
||||||
// Compare with the oldFilteredPrompts
|
// Compare with the oldFilteredPrompts
|
||||||
// If there's a difference, update array + version
|
// If there's a difference, update array + version
|
||||||
|
Loading…
Reference in New Issue
Block a user