mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
clarify AN location, fix AN display toggle
This commit is contained in:
@ -2601,7 +2601,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<a id="option_toggle_AN">
|
<a id="option_toggle_AN">
|
||||||
<i class="fa-lg fa-solid fa-note-sticky"></i>
|
<i class="fa-lg fa-solid fa-note-sticky"></i>
|
||||||
<span>Open Author's Note</span>
|
<span>Author's Note Show/Hide</span>
|
||||||
</a>
|
</a>
|
||||||
<a id="option_convert_to_group">
|
<a id="option_convert_to_group">
|
||||||
<i class="fa-lg fa-solid fa-people-arrows"></i>
|
<i class="fa-lg fa-solid fa-people-arrows"></i>
|
||||||
|
@ -5667,15 +5667,20 @@ $(document).ready(function () {
|
|||||||
var id = $(this).attr("id");
|
var id = $(this).attr("id");
|
||||||
|
|
||||||
if (id == "option_toggle_AN") {
|
if (id == "option_toggle_AN") {
|
||||||
if (selected_group || this_chid !== undefined && $("#floatingPrompt").css("display") === 'none') {
|
if (selected_group || this_chid !== undefined
|
||||||
|
&& $("#floatingPrompt").css("display") !== 'flex') {
|
||||||
$("#floatingPrompt").css("display", "flex");
|
$("#floatingPrompt").css("display", "flex");
|
||||||
$("#floatingPrompt").css("opacity", 0.0);
|
$("#floatingPrompt").css("opacity", 0.0);
|
||||||
$("#floatingPrompt").transition({
|
$("#floatingPrompt").transition({
|
||||||
opacity: 1.0,
|
opacity: 1.0,
|
||||||
duration: animation_duration,
|
duration: 250,
|
||||||
easing: animation_easing,
|
easing: animation_easing,
|
||||||
});
|
});
|
||||||
|
if ($("#ANBlockToggle")
|
||||||
|
.siblings('.inline-drawer-content')
|
||||||
|
.css('display') !== 'block') {
|
||||||
$("#ANBlockToggle").click();
|
$("#ANBlockToggle").click();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$("#floatingPrompt").transition({
|
$("#floatingPrompt").transition({
|
||||||
opacity: 0.0,
|
opacity: 0.0,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"display_name": "Author's Note / Character Bias",
|
"display_name": "Author's Note (Located in Lower Left Options Menu)",
|
||||||
"loading_order": 1,
|
"loading_order": 1,
|
||||||
"requires": [],
|
"requires": [],
|
||||||
"optional": [],
|
"optional": [],
|
||||||
|
Reference in New Issue
Block a user