mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
refac
This commit is contained in:
parent
ad82eae6a9
commit
398bc96b1a
@ -39,8 +39,15 @@
|
|||||||
let messagesLoading = false;
|
let messagesLoading = false;
|
||||||
|
|
||||||
const loadMoreMessages = async () => {
|
const loadMoreMessages = async () => {
|
||||||
|
// scroll slightly down to disable continuous loading
|
||||||
|
const element = document.getElementById('messages-container');
|
||||||
|
element.scrollTop = element.scrollTop + 100;
|
||||||
|
|
||||||
messagesLoading = true;
|
messagesLoading = true;
|
||||||
messagesCount += 20;
|
messagesCount += 20;
|
||||||
|
|
||||||
|
await tick();
|
||||||
|
|
||||||
messagesLoading = false;
|
messagesLoading = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user