From 979e1f1bd68ed9e44b9af0633017f9ecc456bbcd Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 1 Jan 2025 17:57:09 -0800 Subject: [PATCH] Fix a bug after 9163951f3aa65956ffcc7518d4a9c6ccca353b0b --- js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;