mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-30 12:24:20 +01:00
Hide the header bar on Ctrl+S
This commit is contained in:
parent
1d23159837
commit
8e0ef5b419
|
|
@ -4,6 +4,8 @@ const belowChatInput = document.querySelectorAll(
|
|||
const chatParent = document.querySelector(".chat-parent");
|
||||
|
||||
function toggle_controls(value) {
|
||||
const headerBar = document.querySelector(".header_bar");
|
||||
|
||||
if (value) {
|
||||
belowChatInput.forEach(element => {
|
||||
element.style.display = "inherit";
|
||||
|
|
@ -19,6 +21,11 @@ function toggle_controls(value) {
|
|||
gallery_element.style.display = "block";
|
||||
}
|
||||
|
||||
// Show header bar
|
||||
if (headerBar) {
|
||||
headerBar.style.removeProperty("display");
|
||||
}
|
||||
|
||||
} else {
|
||||
belowChatInput.forEach(element => {
|
||||
element.style.display = "none";
|
||||
|
|
@ -28,5 +35,10 @@ function toggle_controls(value) {
|
|||
document.getElementById("chat-input-row").classList.add("bigchat");
|
||||
document.getElementById("chat-col").classList.add("bigchat");
|
||||
document.getElementById("chat-tab").style.paddingBottom = "0px";
|
||||
|
||||
// Hide header bar
|
||||
if (headerBar) {
|
||||
headerBar.style.setProperty("display", "none", "important");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue