From 64bf6d9603b33933030b7bb24e20f45b37731f1e Mon Sep 17 00:00:00 2001 From: AskaEth Date: Mon, 27 Jul 2026 11:31:19 +0800 Subject: [PATCH] feat: dashboard cards show preview.jpg background when available --- static/js/pages/dashboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pages/dashboard.js b/static/js/pages/dashboard.js index 10f6e80..7e13f31 100644 --- a/static/js/pages/dashboard.js +++ b/static/js/pages/dashboard.js @@ -289,9 +289,10 @@ const PageDashboard = { const isAll = supported === 'all'; const compatLabel = isAll ? '全' : '限'; const compatClass = isAll ? 'badge-info' : 'badge-warning'; + const preview = `/dashboard/${theme.id}/preview.jpg`; return `
-
${icon}
+
${icon}
${theme.name || 'Unnamed'}