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();
|
toastContainer.remove();
|
||||||
} else {
|
} else {
|
||||||
document.body.appendChild(toastContainer);
|
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(
|
toastr.info(
|
||||||
'To import and use it, select "Import Card Lore" in the "More..." dropdown menu on the character panel.',
|
'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`,
|
`${characters[chid].name} has an embedded World/Lorebook`,
|
||||||
{ timeOut: 5000, extendedTimeOut: 10000, positionClass: 'toast-top-center' },
|
{ timeOut: 5000, extendedTimeOut: 10000 },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3940,6 +3940,8 @@ body #toast-container>div {
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
filter: unset;
|
filter: unset;
|
||||||
-ms-filter: unset;
|
-ms-filter: unset;
|
||||||
|
padding: 5px 5px 10px 50px;
|
||||||
|
font-size: calc(var(--mainFontSize) * 0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
#dialogue_del_mes {
|
#dialogue_del_mes {
|
||||||
|
Reference in New Issue
Block a user