From 62d49ff45ffe096c6db39b832bad3e02bfb575ef Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 07:57:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B8=83=E5=B1=80=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=94=A8=20cssText=20=E6=98=BE=E5=BC=8F=E8=AE=BE=E7=BD=AE=20(?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=20style=3D''=20=E6=AE=8B=E7=95=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 1fc15be..9db1c60 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -102,12 +102,12 @@ grid.innerHTML = '
加载中...
'; if (_layoutMode === 'row') { grid.className = 'layout-row'; - grid.style = ''; + grid.style.cssText = 'display:flex;flex-direction:column;gap:12px'; btn.textContent = '⊞ 网格'; btn.className = 'btn btn-sm btn-filled'; } else { grid.className = ''; - grid.style = 'display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px'; + grid.style.cssText = 'display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px'; btn.textContent = '☷ 横版'; btn.className = 'btn btn-sm btn-outlined'; }