scroll when uploading pic

master
Aevann 2024-11-13 03:06:25 +02:00
parent 8cbc18f99a
commit d8f7d133d7
1 changed files with 1 additions and 0 deletions

View File

@ -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 {