fix reconnect alert fade and move it to core

isekai-main
Barış Soner Uşaklı 2 years ago
parent 2f51532987
commit 7a29c2eb2e

@ -165,7 +165,7 @@ app = window.app || {};
reconnectEl.tooltip('dispose');
reconnectEl.html('<i class="fa fa-check text-success"></i>');
reconnectAlert.addClass('hide');
reconnectAlert.removeClass('show');
reconnecting = false;
reJoinCurrentRoom();
@ -202,7 +202,7 @@ app = window.app || {};
if (!reconnectEl.hasClass('active')) {
reconnectEl.html('<i class="fa fa-spinner fa-spin"></i>');
reconnectAlert.removeClass('hide');
reconnectAlert.addClass('show');
}
reconnectEl.addClass('active').removeClass('hide').tooltip({

@ -5,8 +5,8 @@
{{{ if !isSpider }}}
<div class="">
<div component="toaster/tray" class="alert-window fixed-bottom mb-5 mb-md-2 me-2 me-md-5 ms-auto" style="width:300px; z-index: 1090;">
<div id="reconnect-alert" class="alert alert-dismissible alert-warning clearfix hide" component="toaster/toast">
<button type="button" class="btn-close float-end" data-bs-dismiss="alert" aria-hidden="true"></button>
<div id="reconnect-alert" class="alert alert-dismissible alert-warning fade" component="toaster/toast">
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-hidden="true"></button>
<p>[[global:reconnecting-message, {config.siteTitle}]]</p>
</div>
</div>

@ -0,0 +1,4 @@
<div id="reconnect-alert" class="alert alert-dismissible alert-warning fade" component="toaster/toast">
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-hidden="true"></button>
<p>[[global:reconnecting-message, {config.siteTitle}]]</p>
</div>
Loading…
Cancel
Save