From 8ce6cf3c7e2832522d8e8c56b1aa92be972c2d2a Mon Sep 17 00:00:00 2001 From: duyphan1410 Date: Thu, 23 Apr 2026 14:18:38 +0700 Subject: [PATCH] Update: Dashboard-Quick Management, check loading for icon-picker --- public/js/icon-picker.js | 6 ++++ views/admin/dashboard.ejs | 59 ++++++++++++++++++++++++++++++++------- 2 files changed, 55 insertions(+), 10 deletions(-) diff --git a/public/js/icon-picker.js b/public/js/icon-picker.js index c7ea812..119152a 100644 --- a/public/js/icon-picker.js +++ b/public/js/icon-picker.js @@ -116,7 +116,9 @@ } function _renderGrid(icons) { + const grid = document.getElementById('iconGrid'); + grid.style.visibility = 'hidden'; if (!icons.length) { grid.innerHTML = '

No icons found.

'; return; @@ -133,6 +135,10 @@ ${icon.label} `).join(''); + + document.fonts.ready.then(() => { + grid.style.visibility = 'visible'; + }); } function pick(value) { diff --git a/views/admin/dashboard.ejs b/views/admin/dashboard.ejs index f32a370..868ca47 100644 --- a/views/admin/dashboard.ejs +++ b/views/admin/dashboard.ejs @@ -65,22 +65,51 @@ - -
-
-
+ +
+
+
-
About Us
-

Manage about us

+
About Section
+

Manage about pages

- - Edit - + +
+ +
@@ -510,4 +539,14 @@ background-color: var(--primary-color) !important; color: white; } - \ No newline at end of file + + + \ No newline at end of file