Fix toast position on app init
| @@ -319,6 +319,7 @@ await new Promise((resolve) => { | |||
| 319 | 319 | ||
| 320 | // Configure toast library: | 320 | // Configure toast library: |
| 321 | toastr.options = { | 321 | toastr.options = { |
| 322 | positionClass: 'toast-top-center', | ||
| 322 | closeButton: false, | 323 | closeButton: false, |
| 323 | progressBar: false, | 324 | progressBar: false, |
| 324 | showDuration: 250, | 325 | showDuration: 250, |
| @@ -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 }); |
| 16 | 16 | ||
| 17 | // No close button, loaders are not closable | 17 | // No close button, loaders are not closable |
| 18 | loaderPopup.closeButton.style.display = 'none'; | 18 | loaderPopup.closeButton.style.display = 'none'; |
| @@ -1068,7 +1068,8 @@ function applyToastrPosition() { | |||
| 1068 | 1068 | ||
| 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 | } |
| 1073 | 1074 | ||
| 1074 | function applyChatWidth(type) { | 1075 | function applyChatWidth(type) { |