improve ui

This commit is contained in:
marlon-erler
2024-07-09 18:58:05 +02:00
parent f4cb1d858c
commit b80c59e00e
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -70,8 +70,9 @@ export function ThreadView(chat: Chat) {
listElement.scrollHeight -
(listElement.scrollTop + listElement.offsetHeight);
if (scrollFromBottom > 400) return;
listElement.scrollTop = listElement.scrollHeight;
});
setTimeout(() => (listElement.scrollTop = listElement.scrollHeight), 50);
return listElement;
}