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