refac: overview

This commit is contained in:
Timothy Jaeryang Baek committed 2025-10-05 23:56:23 -05:00
1 parent 270ca2ddbe
commit b4536a691a
4 files changed
+342 -323

No files matched your search

+2 -2
View File
@@ -300,7 +300,7 @@
}
};
const showMessage = async (message) => {
const showMessage = async (message, ignoreSettings = false) => {
await tick();
const _chatId = JSON.parse(JSON.stringify($chatId));
@@ -326,7 +326,7 @@
await tick();
await tick();
if ($settings?.scrollOnBranchChange ?? true) {
if (($settings?.scrollOnBranchChange ?? true) || ignoreSettings) {
const messageElement = document.getElementById(`message-${message.id}`);
if (messageElement) {
messageElement.scrollIntoView({ behavior: 'smooth' });