From 4c840fff52a7e1a7ac6c71ac58f0485f6fc562f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Sat, 3 Oct 2020 12:33:24 +0200 Subject: [PATCH] hack: prevent error messages from resizing the chat box --- public/trivabble.js | 1 + 1 file changed, 1 insertion(+) 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"; -- 2.30.2