From 1572e23fda412ea1860c33287b5e8fe3d300ced6 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 13:38:18 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A3=81=E7=9B=98/=E6=8C=87=E6=A0=87a?= =?UTF-8?q?uto=E5=AE=BD=E5=BA=A6+max-width=20=E5=9B=BE=E8=A1=A8=E5=8D=A0?= =?UTF-8?q?=E6=BB=A1=E5=89=A9=E4=BD=99?= 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 3c216b9..00ed573 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -56,13 +56,13 @@ .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:140px 1.5fr 0.6fr 0.5fr 0.8fr 1fr;gap:12px 16px;align-items:start } + #sentinel-grid.layout-row .node-card { display:grid;grid-template-columns:140px 1fr auto auto 0.8fr 1fr;gap:12px 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:12px;min-width:0 } - #sentinel-grid.layout-row .col-extra { display:flex;flex-direction:column;gap:6px;padding:0 8px } + #sentinel-grid.layout-row .col-extra { display:flex;flex-direction:column;gap:6px;padding:0 8px;max-width:160px } #sentinel-grid.layout-row .extra-row { font-size:.8rem;padding:3px 0;border-bottom:1px solid var(--md-sys-color-surface-container-lowest) } #sentinel-grid.layout-row .extra-row .elabel { font-size:.65rem;color:var(--text-dim);text-transform:uppercase;margin-right:4px } - #sentinel-grid.layout-row .col-disk { display:none;overflow-y:auto;max-height:200px;padding:0 4px } + #sentinel-grid.layout-row .col-disk { display:none;overflow-y:auto;max-height:200px;padding:0 4px;max-width:180px } #sentinel-grid.layout-row .disk-list { display:flex;flex-direction:column;gap:4px } #sentinel-grid.layout-row .part-row { display:flex;flex-direction:column;gap:2px;padding:3px 0;border-bottom:1px solid var(--md-sys-color-surface-container-lowest) } #sentinel-grid.layout-row .part-info { display:flex;justify-content:space-between;font-size:.7rem } @@ -82,10 +82,10 @@ #sentinel-grid.layout-row .part-bar-fill { height:100%;border-radius:1px;background:var(--primary) } #sentinel-grid.layout-row .part-detail { display:flex;justify-content:space-between;font-size:.6rem;color:var(--text-dim) } #sentinel-grid.layout-row .part-pct { text-align:right } - #sentinel-grid.layout-row .col-extra { display:flex;flex-direction:column;gap:6px;padding:0 8px } + #sentinel-grid.layout-row .col-extra { display:flex;flex-direction:column;gap:6px;padding:0 8px;max-width:160px } #sentinel-grid.layout-row .extra-row { font-size:.8rem;padding:3px 0;border-bottom:1px solid var(--md-sys-color-surface-container-lowest) } #sentinel-grid.layout-row .extra-row .elabel { font-size:.65rem;color:var(--text-dim);text-transform:uppercase;margin-right:4px } - #sentinel-grid.layout-row .col-disk { display:none;overflow-y:auto;max-height:200px;padding:0 4px } + #sentinel-grid.layout-row .col-disk { display:none;overflow-y:auto;max-height:200px;padding:0 4px;max-width:180px } #sentinel-grid.layout-row .disk-list { display:flex;flex-direction:column;gap:4px } #sentinel-grid.layout-row .part-row { display:flex;flex-direction:column;gap:2px;padding:3px 0;border-bottom:1px solid var(--md-sys-color-surface-container-lowest) } #sentinel-grid.layout-row .part-info { display:flex;justify-content:space-between;font-size:.7rem }