mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix edge cases, put toastr on a diet
This commit is contained in:
@@ -745,7 +745,7 @@ export function fixToastrForDialogs() {
|
||||
toastContainer.remove();
|
||||
} else {
|
||||
document.body.appendChild(toastContainer);
|
||||
toastContainer.classList.add('toast-top-center');
|
||||
toastContainer.classList.add(toastr.options.positionClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -4986,7 +4986,7 @@ export function checkEmbeddedWorld(chid) {
|
||||
toastr.info(
|
||||
'To import and use it, select "Import Card Lore" in the "More..." dropdown menu on the character panel.',
|
||||
`${characters[chid].name} has an embedded World/Lorebook`,
|
||||
{ timeOut: 5000, extendedTimeOut: 10000, positionClass: 'toast-top-center' },
|
||||
{ timeOut: 5000, extendedTimeOut: 10000 },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user