mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge branch 'loading-screen' into 2025.9-test
This commit is contained in:
commit
baebf1cae8
@ -86,6 +86,13 @@
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
&.cp-loading-empty {
|
||||
&>:not(.cp-loading-empty) {
|
||||
display: none !important;
|
||||
}
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
@ -1067,6 +1067,7 @@ define([
|
||||
var $loading = $('#' + LOADING);
|
||||
// Show the loading screen
|
||||
$loading.css('display', '');
|
||||
$loading.toggleClass('cp-loading-empty', false);
|
||||
$loading.removeClass('cp-loading-hidden');
|
||||
$loading.removeClass('cp-loading-transparent');
|
||||
$loading.attr('aria-live','polite');
|
||||
@ -1122,9 +1123,10 @@ define([
|
||||
UI.emptyLoadingScreen = function (content) {
|
||||
UI.addLoadingScreen();
|
||||
var $loading = $('#' + LOADING);
|
||||
$loading.toggleClass('cp-loading-empty', true);
|
||||
$loading.find('.cp-loading-container').hide();
|
||||
$loading.find('.cp-loading-logo').hide();
|
||||
$loading.append(content);
|
||||
$loading.append(h('div.cp-loading-empty', [content]));
|
||||
};
|
||||
UI.errorLoadingScreen = function (error, transparent, exitable, errorCls) {
|
||||
if (error === 'Error: XDR encoding failure') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user