mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-30 14:10:14 +01:00
21 lines
775 B
JavaScript
21 lines
775 B
JavaScript
const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+3), #extensions");
|
|
const chatParent = document.getElementById("chat").parentNode.parentNode.parentNode;
|
|
|
|
function toggle_controls(value) {
|
|
if (value) {
|
|
belowChatInput.forEach(element => {
|
|
element.style.display = "inherit";
|
|
});
|
|
|
|
chatParent.classList.remove("bigchat");
|
|
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = '20px';
|
|
} else {
|
|
belowChatInput.forEach(element => {
|
|
element.style.display = "none";
|
|
});
|
|
|
|
chatParent.classList.add("bigchat");
|
|
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = '0px';
|
|
}
|
|
}
|