Fix a bug after 9163951f3a

This commit is contained in:
oobabooga 2025-01-01 17:57:09 -08:00
parent f011787a83
commit 979e1f1bd6

View File

@ -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;