Skip to content

Commit 7e5e14e

Browse files
author
Jicheng Lu
committed
scroll to bottom when load logs
1 parent 7a4330f commit 7e5e14e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
scrollbarElements.forEach(elem => {
5656
scrollbars = [ ...scrollbars, OverlayScrollbars(elem, options) ];
5757
});
58-
refresh();
58+
scrollToBottom();
5959
});
6060
6161
afterUpdate(() => {

src/routes/chat/[agentId]/[conversationId]/stateLogs/state-log.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
scrollbarElements.forEach(elem => {
5555
scrollbars = [ ...scrollbars, OverlayScrollbars(elem, options) ];
5656
});
57-
refresh();
57+
scrollToBottom();
5858
});
5959
6060
afterUpdate(() => {

0 commit comments

Comments
 (0)