mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Added Option to toggle/Hide settings bar.
This commit is contained in:
@@ -3751,6 +3751,10 @@
|
|||||||
<i class="fa-lg fa-solid fa-repeat"></i>
|
<i class="fa-lg fa-solid fa-repeat"></i>
|
||||||
<span data-i18n="Regenerate">Regenerate</span>
|
<span data-i18n="Regenerate">Regenerate</span>
|
||||||
</a>
|
</a>
|
||||||
|
<a id="option_settings">
|
||||||
|
<i class="fa-lg fa-solid fa-cog"></i>
|
||||||
|
<span data-i18n="Settings">Settings</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -7715,6 +7715,22 @@ $(document).ready(function () {
|
|||||||
else if (id == "option_delete_mes") {
|
else if (id == "option_delete_mes") {
|
||||||
setTimeout(openMessageDelete, animation_duration);
|
setTimeout(openMessageDelete, animation_duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (id == "option_settings") {
|
||||||
|
//var checkBox = document.getElementById("waifuMode");
|
||||||
|
var topBar = document.getElementById("top-bar");
|
||||||
|
var topSettingsHolder = document.getElementById("top-settings-holder");
|
||||||
|
|
||||||
|
//if (checkBox.checked) {
|
||||||
|
if (topBar.style.display === "none") {
|
||||||
|
topBar.style.display = ""; // or "inline-block" if that's the original display value
|
||||||
|
topSettingsHolder.style.display = ""; // or "inline-block" if that's the original display value
|
||||||
|
} else {
|
||||||
|
topBar.style.display = "none";
|
||||||
|
topSettingsHolder.style.display = "none";
|
||||||
|
}
|
||||||
|
//}
|
||||||
|
}
|
||||||
hideMenu();
|
hideMenu();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user