Fix toast position on app init

f53f0394522973fdb085570abd9c69e87c0766be

Cohee <18619528+Cohee1207@users.noreply.github.com>

3 files changed, +4 -2Showing whitespace changes
public/script.js+1 -0
@@ -319,6 +319,7 @@ await new Promise((resolve) => {
319319
320320// Configure toast library:
321321toastr.options = {
322+ positionClass: 'toast-top-center',
322323 closeButton: false,
323324 progressBar: false,
324325 showDuration: 250,
public/scripts/loader.js+1 -1
@@ -12,7 +12,7 @@ export function showLoader() {
1212 loaderPopup = new Popup(`
1313 <div id="loader">
1414 <div id="load-spinner" class="fa-solid fa-gear fa-spin fa-3x"></div>
1515 </div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none', wide: true, large: true });
1616
1717 // No close button, loaders are not closable
1818 loaderPopup.closeButton.style.display = 'none';
public/scripts/power-user.js+2 -1
@@ -1068,7 +1068,8 @@ function applyToastrPosition() {
10681068
10691069 toastr.options.positionClass = power_user.toastr_position;
10701070 fixToastrForDialogs();
10711071 $('#toastr_position').val(power_user.toastr_position).prop('selected', true);
1072+ $(`#toastr_position option[value="${power_user.toastr_position}"]`).prop('selected', true);
10721073}
10731074
10741075function applyChatWidth(type) {