Fix toast position on app init

f53f0394522973fdb085570abd9c69e87c0766be

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

3 files changed, +4 -2Ignore whitespace
public/script.js+1 -0
@@ -319,6 +319,7 @@ await new Promise((resolve) => {
319319
320// Configure toast library:320// Configure toast library:
321toastr.options = {321toastr.options = {
322 positionClass: 'toast-top-center',
322 closeButton: false,323 closeButton: false,
323 progressBar: false,324 progressBar: false,
324 showDuration: 250,325 showDuration: 250,
public/scripts/loader.js+1 -1
@@ -12,7 +12,7 @@ export function showLoader() {
12 loaderPopup = new Popup(`12 loaderPopup = new Popup(`
13 <div id="loader">13 <div id="loader">
14 <div id="load-spinner" class="fa-solid fa-gear fa-spin fa-3x"></div>14 <div id="load-spinner" class="fa-solid fa-gear fa-spin fa-3x"></div>
15 </div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none' });15 </div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none', wide: true, large: true });
1616
17 // No close button, loaders are not closable17 // No close button, loaders are not closable
18 loaderPopup.closeButton.style.display = 'none';18 loaderPopup.closeButton.style.display = 'none';
public/scripts/power-user.js+2 -1
@@ -1068,7 +1068,8 @@ function applyToastrPosition() {
10681068
1069 toastr.options.positionClass = power_user.toastr_position;1069 toastr.options.positionClass = power_user.toastr_position;
1070 fixToastrForDialogs();1070 fixToastrForDialogs();
1071 $('#toastr_position').val(power_user.toastr_position).prop('selected', true);1071 $('#toastr_position').val(power_user.toastr_position);
1072 $(`#toastr_position option[value="${power_user.toastr_position}"]`).prop('selected', true);
1072}1073}
10731074
1074function applyChatWidth(type) {1075function applyChatWidth(type) {