fix edge cases, put toastr on a diet

This commit is contained in:
RossAscends
2025-05-21 15:35:12 +09:00
parent 87f547cd87
commit f145dfcb2d
3 changed files with 4 additions and 2 deletions

View File

@ -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);
} }
} }
} }

View File

@ -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 },
); );
} }
} }

View File

@ -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 {