From c9f1d69b475c43f23c257acf1861361674722243 Mon Sep 17 00:00:00 2001 From: Phuoc Anh Kha Le <76896393+anhkha2003@users.noreply.github.com> Date: Sun, 24 Dec 2023 00:39:48 -0600 Subject: [PATCH] Reset textarea to default size after submitting message (#99) --- templates/chat/chat_js.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/chat/chat_js.html b/templates/chat/chat_js.html index 78418c5..81fe1f9 100644 --- a/templates/chat/chat_js.html +++ b/templates/chat/chat_js.html @@ -219,7 +219,6 @@ if ($("#chat-input").val().trim()) { $('#chat-input-container').height('auto'); var body = $('#chat-input').val().trim(); - // body = body.split('\n').join('\n\n'); var message = { body: body, @@ -228,6 +227,7 @@ }; $('#chat-input').val(''); + $('#chat-input').css('height', '70%'); add_message_from_template(body, message.tmp_id);