Prevent input/chat area overlap with new --my-delta variable
This commit is contained in:
parent
02d063fb9f
commit
5466ae59a7
2 changed files with 7 additions and 3 deletions
|
@ -340,6 +340,7 @@ function updateCssProperties() {
|
|||
const chatInputHeight = document.querySelector('#chat-input textarea').clientHeight;
|
||||
const newChatHeight = `${chatContainer.clientHeight - chatInputHeight + 40}px`;
|
||||
document.documentElement.style.setProperty('--chat-height', newChatHeight);
|
||||
document.documentElement.style.setProperty('--my-delta', `${chatInputHeight - 40}px`);
|
||||
|
||||
// Set the position offset of the chat input box
|
||||
const header = document.querySelector('.header_bar');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue