mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
add option for toastr location to themes
This commit is contained in:
@ -321,7 +321,7 @@ toastr.options.timeOut = 4000; // How long the toast will display without user i
|
||||
toastr.options.extendedTimeOut = 10000; // How long the toast will display after a user hovers over it
|
||||
toastr.options.progressBar = true; // Visually indicate how long before a toast expires.
|
||||
toastr.options.closeButton = true; // enable a close button
|
||||
toastr.options.positionClass = 'toast-top-center'; // Where to position the toast container
|
||||
//toastr.options.positionClass = power_user.toastr_position; // Where to position the toast container
|
||||
toastr.options.onHidden = () => {
|
||||
// If we have any dialog still open, the last "hidden" toastr will remove the toastr-container. We need to keep it alive inside the dialog though
|
||||
// so the toasts still show up inside there.
|
||||
@ -7592,6 +7592,8 @@ export async function getSettings() {
|
||||
// Apply theme toggles from power user settings
|
||||
applyPowerUserSettings();
|
||||
|
||||
toastr.options.positionClass = power_user.toastr_position; // Where to position the toast container
|
||||
|
||||
// Load character tags
|
||||
loadTagsSettings(settings);
|
||||
|
||||
|
Reference in New Issue
Block a user