Remove extra space in --chat-buttons

This commit is contained in:
oobabooga 2023-09-15 20:56:30 -07:00
parent 2ad6ca8874
commit 52c4fb75ff
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,6 @@
const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+2), #extensions");
const chatParent = document.querySelector(".chat-parent");
let isOld = document.querySelectorAll('.old-ui').length > 0;
function toggle_controls(value) {
if (value) {
@ -8,7 +9,7 @@ function toggle_controls(value) {
});
chatParent.classList.remove("bigchat");
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = '20px';
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = isOld ? '0px' : '20px';
document.getElementById('show-controls').parentNode.parentNode.style.paddingBottom = '115px';
} else {
belowChatInput.forEach(element => {