diff --git a/js/main.js b/js/main.js index 76a0184b..efb84238 100644 --- a/js/main.js +++ b/js/main.js @@ -447,13 +447,13 @@ function toggleBigPicture() { // Handle the chat input box growth //------------------------------------------------ -// Variables to store current dimensions -let currentChatInputHeight = chatInput.clientHeight; - // Cache DOM elements const chatContainer = document.getElementById("chat").parentNode.parentNode.parentNode; const chatInput = document.querySelector("#chat-input textarea"); +// Variables to store current dimensions +let currentChatInputHeight = chatInput.clientHeight; + // Update chat layout based on chat and input dimensions function updateCssProperties() { const chatInputHeight = chatInput.clientHeight;