From f145dfcb2da4152056ba7ad225f350baf66461bf Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Wed, 21 May 2025 15:35:12 +0900 Subject: [PATCH] fix edge cases, put toastr on a diet --- public/scripts/popup.js | 2 +- public/scripts/world-info.js | 2 +- public/style.css | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/scripts/popup.js b/public/scripts/popup.js index 3a1b03877..ef999670c 100644 --- a/public/scripts/popup.js +++ b/public/scripts/popup.js @@ -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); } } } diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index b6b2f01fd..263b19478 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -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 }, ); } } diff --git a/public/style.css b/public/style.css index cc3082ea5..735019cc4 100644 --- a/public/style.css +++ b/public/style.css @@ -3940,6 +3940,8 @@ body #toast-container>div { opacity: 1; filter: unset; -ms-filter: unset; + padding: 5px 5px 10px 50px; + font-size: calc(var(--mainFontSize) * 0.9); } #dialogue_del_mes {