From c686abb222dfaffd77c47b318175e6421f20b426 Mon Sep 17 00:00:00 2001 From: anhkha2003 Date: Fri, 22 Dec 2023 23:23:56 -0600 Subject: [PATCH] Update Chat --- templates/chat/chat_js.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/chat/chat_js.html b/templates/chat/chat_js.html index 78418c5..1c89800 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); @@ -239,6 +239,8 @@ $('#empty_msg').hide(); $('#chat-input').focus(); }) + + } {% endif %} }