From d8f7d133d7c4abe9825cf5d0343dfc73f94ee162 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 13 Nov 2024 03:06:25 +0200 Subject: [PATCH] scroll when uploading pic --- files/assets/js/chat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 5181fd3d1..0c1a6f41f 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -403,6 +403,7 @@ function handle_files() { document.getElementById('image-preview').setAttribute('src', this.result); document.getElementById('image-preview').classList.remove('d-none'); document.getElementById('image-preview').classList.add('mr-2'); + box.scrollTo(0, box.scrollHeight) }; } else {