From: Raphaƫl Jakse Date: Sat, 3 Oct 2020 10:33:24 +0000 (+0200) Subject: hack: prevent error messages from resizing the chat box X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=4c840fff52a7e1a7ac6c71ac58f0485f6fc562f5;p=trivabble.git hack: prevent error messages from resizing the chat box --- diff --git a/public/trivabble.js b/public/trivabble.js index 1441202..c1bdb32 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -831,6 +831,7 @@ } function chatMessage(sender, content) { + chatMessages.style.width = chatTextarea.offsetWidth + "px"; // HACK to prevent the chat box from getting too big const msgDom = document.createElement("div"); msgDom.className = "msg";