Fix toast position on app init

This commit is contained in:
Cohee
2025-09-13 21:23:11 +03:00
parent 6dabf12ed7
commit f53f039452
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -319,6 +319,7 @@ await new Promise((resolve) => {
// Configure toast library:
toastr.options = {
positionClass: 'toast-top-center',
closeButton: false,
progressBar: false,
showDuration: 250,
+1 -1
View File
@@ -12,7 +12,7 @@ export function showLoader() {
loaderPopup = new Popup(`
<div id="loader">
<div id="load-spinner" class="fa-solid fa-gear fa-spin fa-3x"></div>
</div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none' });
</div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none', wide: true, large: true });
// No close button, loaders are not closable
loaderPopup.closeButton.style.display = 'none';
+2 -1
View File
@@ -1068,7 +1068,8 @@ function applyToastrPosition() {
toastr.options.positionClass = power_user.toastr_position;
fixToastrForDialogs();
$('#toastr_position').val(power_user.toastr_position).prop('selected', true);
$('#toastr_position').val(power_user.toastr_position);
$(`#toastr_position option[value="${power_user.toastr_position}"]`).prop('selected', true);
}
function applyChatWidth(type) {