fix icon flickering issue

This commit is contained in:
daria 2025-09-04 15:58:42 +03:00
parent 9131ff3a62
commit 20e35d0b41
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701
6 changed files with 9 additions and 9 deletions

View File

@ -356,7 +356,7 @@ define([
$container.append($form);
isEdit = false;
called = false;
setTimeout( () => Lucide.createIcons(), 0);
Lucide.createIcons();
});
};
resetUI();
@ -996,7 +996,6 @@ define([
};
UI.passwordInput = function (opts, displayEye) {
setTimeout( () => Lucide.createIcons(), 0);
opts = opts || {};
var attributes = merge({
type: 'password',
@ -1046,6 +1045,7 @@ define([
});
}
Lucide.createIcons();
return h('span.cp-password-container', [
input,
eye

View File

@ -2961,7 +2961,6 @@ define([
icon: UI.getFileIcon({type: type})
});
var redraw = function (index) {
setTimeout( ()=> Lucide.createIcons());
if (index < 0) { i = 0; }
else if (index > allData.length - 1) { return; }
else { i = index; }
@ -3013,6 +3012,7 @@ define([
$('.cp-creation-template-container').find('[tabindex]:not([tabindex="-1"])').filter(':visible').first().focus();
});
if (i < TEMPLATES_DISPLAYED) { $(left).addClass('hidden'); }
Lucide.createIcons();
};
if (fromFileData) {
var todo = function (thumbnail) {

View File

@ -400,7 +400,7 @@ define([
common.setHash(active);
setTimeout(() => { sidebar.openCategory(active); });
setTimeout( () => Lucide.createIcons());
Lucide.createIcons();
$leftside.append(container);
};

View File

@ -249,7 +249,6 @@ MessengerUI, Messages, Pages, PadTypes, Lucide, Icons) {
var $spansmall = $('<span>').append($editIcon, $editCount, $separator, $viewIcon, $viewCount);
$userButtons.find('.cp-toolbar-userlist-button').empty().append($spansmall);
setTimeout( () => Lucide.createIcons(), 0);
if (!online || toolbar.isDeleted) { return; }
if (metadataMgr.isDegraded() === true) { return; }
@ -432,6 +431,7 @@ MessengerUI, Messages, Pages, PadTypes, Lucide, Icons) {
viewText += numberOfViewUsers + ' ' + viewerText + '</div>';
$editUsers.append(viewText);
}
Lucide.createIcons();
};
var initUserList = function (toolbar, config) {

View File

@ -185,7 +185,6 @@ define([
var createEditModal = function (framework, kanban) {
if (framework.isReadOnly()) { return; }
if (editModal) { return editModal; }
setTimeout( () => Lucide.createIcons(), 0);
var dataObject = {};
var isBoard, id;
@ -521,6 +520,7 @@ define([
});
});
Lucide.createIcons();
return {
modal: modal,
setId: setId,
@ -1185,7 +1185,7 @@ define([
$tag.attr('aria-pressed', 'true');
}
commitTags();
setTimeout( () => Lucide.createIcons(), 0);
Lucide.createIcons();
}).keydown(function (e) {
if (e.which === 13 || e.which === 32) {
$tag.click();

View File

@ -214,7 +214,6 @@ define([
var mkSettingsMenu = function(framework) {
var getSettings = function () {
setTimeout( () => Lucide.createIcons(), 0);
var $d = $(h('div.cp-pad-settings-dialog'));
var common = framework._.sfCommon;
var metadataMgr = common.getMetadataMgr();
@ -339,6 +338,7 @@ define([
$comments[0],
]);
Lucide.createIcons();
return $d[0];
};
@ -647,7 +647,6 @@ define([
};
var andThen2 = function(editor, Ckeditor, framework) {
setTimeout(() => Lucide.createIcons());
var mediaTagMap = {};
var $contentContainer = $('#cke_1_contents');
var $html = $('html');
@ -1330,6 +1329,7 @@ define([
}
});
Lucide.createIcons();
framework.start();
};