From eae271a26e30a4b23651be3ed9af30eb4b40408c Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 08:43:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E8=A1=A8=E5=AE=BD=E5=BA=A6180?= =?UTF-8?q?=E2=86=92140=20+=20canvas=E5=85=81=E8=AE=B8=E6=94=B6=E7=BC=A9?= =?UTF-8?q?=20+=20=E5=B7=A6=E5=88=97200=E2=86=92180?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index ef2a104..84b1fe5 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -56,14 +56,14 @@ .node-notes { font-size:.75rem; color:var(--text-dim); font-style:italic; margin-bottom:8px } /* 横版布局 — 左设备信息 | 右数据+图表同行 */ #sentinel-grid.layout-row { display:flex;flex-direction:column;gap:12px } - #sentinel-grid.layout-row .node-card { display:grid;grid-template-columns:200px 1fr;gap:8px 16px;align-items:start } + #sentinel-grid.layout-row .node-card { display:grid;grid-template-columns:180px 1fr;gap:8px 16px;align-items:start } #sentinel-grid.layout-row .col-left { min-width:0 } #sentinel-grid.layout-row .col-right-stack { display:flex;flex-direction:column;gap:2px;min-width:0 } #sentinel-grid.layout-row .mtr { display:flex;align-items:center;gap:12px;height:36px;padding:0 8px;border-bottom:1px solid var(--md-sys-color-surface-container-lowest) } #sentinel-grid.layout-row .mtr-data { flex:1;min-width:0;white-space:nowrap } #sentinel-grid.layout-row .mtr-data .rlabel { font-size:.7rem;color:var(--text-dim);text-transform:uppercase;margin-right:6px } #sentinel-grid.layout-row .mtr-data .rval { font-weight:600 } - #sentinel-grid.layout-row .mtr canvas { border-radius:3px;background:var(--md-sys-color-surface-container-lowest);flex-shrink:0 } + #sentinel-grid.layout-row .mtr canvas { border-radius:3px;background:var(--md-sys-color-surface-container-lowest);flex-shrink:1;max-width:180px;min-width:100px } #sentinel-grid.layout-row .node-time { margin-top:4px } #sentinel-grid.layout-row .metric-bar { display:none } .metric-row { display:flex; gap:12px; margin-bottom:8px } @@ -190,9 +190,9 @@ '
'+ ''+ '
'+ - '
CPU 0%
'+ - '
MEM 0%
'+ - '
NET 0 0
'+ + '
CPU 0%
'+ + '
MEM 0%
'+ + '
NET 0 0
'+ '
'+ '
'; } else {