From 5528299c69703d0fb4e617a0013aedf57d1932cf Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 13 Nov 2024 03:51:14 +0200 Subject: [PATCH] make the image preview go away when sending --- files/assets/js/chat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index ac614eba4..2b0729db0 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -203,6 +203,9 @@ function send() { input.previousElementSibling.className = "fas fa-file"; input.previousElementSibling.textContent = ""; } + + image_preview.classList.add('d-none'); + image_preview.classList.remove('mr-2'); }