mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-09 12:09:04 +01:00
Fix a bug after 9163951f3a
This commit is contained in:
parent
f011787a83
commit
979e1f1bd6
@ -447,13 +447,13 @@ function toggleBigPicture() {
|
|||||||
// Handle the chat input box growth
|
// Handle the chat input box growth
|
||||||
//------------------------------------------------
|
//------------------------------------------------
|
||||||
|
|
||||||
// Variables to store current dimensions
|
|
||||||
let currentChatInputHeight = chatInput.clientHeight;
|
|
||||||
|
|
||||||
// Cache DOM elements
|
// Cache DOM elements
|
||||||
const chatContainer = document.getElementById("chat").parentNode.parentNode.parentNode;
|
const chatContainer = document.getElementById("chat").parentNode.parentNode.parentNode;
|
||||||
const chatInput = document.querySelector("#chat-input textarea");
|
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
|
// Update chat layout based on chat and input dimensions
|
||||||
function updateCssProperties() {
|
function updateCssProperties() {
|
||||||
const chatInputHeight = chatInput.clientHeight;
|
const chatInputHeight = chatInput.clientHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user