fix: scroll on branch change w/ multi response chat

This commit is contained in:
Timothy Jaeryang Baek committed 2025-04-19 04:09:46 -07:00
1 parent 463d7fb628
commit 48637893b1
3 files changed
+14 -11

No files matched your search

+5 -3
View File
@@ -236,9 +236,11 @@
await tick();
await tick();
const messageElement = document.getElementById(`message-${message.id}`);
if (messageElement) {
messageElement.scrollIntoView({ behavior: 'smooth' });
if ($settings?.scrollOnBranchChange ?? true) {
const messageElement = document.getElementById(`message-${message.id}`);
if (messageElement) {
messageElement.scrollIntoView({ behavior: 'smooth' });
}
}
await tick();