fix edge cases, put toastr on a diet

f145dfcb2da4152056ba7ad225f350baf66461bf

RossAscends <124905043+RossAscends@users.noreply.github.com>

3 files changed, +4 -2Ignore whitespace
public/scripts/popup.js+1 -1
@@ -745,7 +745,7 @@ export function fixToastrForDialogs() {
745 toastContainer.remove();745 toastContainer.remove();
746 } else {746 } else {
747 document.body.appendChild(toastContainer);747 document.body.appendChild(toastContainer);
748 toastContainer.classList.add('toast-top-center');748 toastContainer.classList.add(toastr.options.positionClass);
749 }749 }
750 }750 }
751}751}
public/scripts/world-info.js+1 -1
@@ -4986,7 +4986,7 @@ export function checkEmbeddedWorld(chid) {
4986 toastr.info(4986 toastr.info(
4987 'To import and use it, select "Import Card Lore" in the "More..." dropdown menu on the character panel.',4987 'To import and use it, select "Import Card Lore" in the "More..." dropdown menu on the character panel.',
4988 `${characters[chid].name} has an embedded World/Lorebook`,4988 `${characters[chid].name} has an embedded World/Lorebook`,
4989 { timeOut: 5000, extendedTimeOut: 10000, positionClass: 'toast-top-center' },4989 { timeOut: 5000, extendedTimeOut: 10000 },
4990 );4990 );
4991 }4991 }
4992 }4992 }
public/style.css+2 -0
@@ -3940,6 +3940,8 @@ body #toast-container>div {
3940 opacity: 1;3940 opacity: 1;
3941 filter: unset;3941 filter: unset;
3942 -ms-filter: unset;3942 -ms-filter: unset;
3943 padding: 5px 5px 10px 50px;
3944 font-size: calc(var(--mainFontSize) * 0.9);
3943}3945}
39443946
3945#dialogue_del_mes {3947#dialogue_del_mes {