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:
@ -5667,15 +5667,20 @@ $(document).ready(function () {
|
||||
var id = $(this).attr("id");
|
||||
|
||||
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("opacity", 0.0);
|
||||
$("#floatingPrompt").transition({
|
||||
opacity: 1.0,
|
||||
duration: animation_duration,
|
||||
duration: 250,
|
||||
easing: animation_easing,
|
||||
});
|
||||
$("#ANBlockToggle").click();
|
||||
if ($("#ANBlockToggle")
|
||||
.siblings('.inline-drawer-content')
|
||||
.css('display') !== 'block') {
|
||||
$("#ANBlockToggle").click();
|
||||
}
|
||||
} else {
|
||||
$("#floatingPrompt").transition({
|
||||
opacity: 0.0,
|
||||
|
Reference in New Issue
Block a user