From cdb2ea220737863fbded52db3ad645c8753dd400 Mon Sep 17 00:00:00 2001 From: JianFeeeee Date: Mon, 14 Sep 2026 11:24:34 +0800 Subject: [PATCH] =?UTF-8?q?polish(webui):=20=E6=8B=93=E6=89=91=E5=9B=BE?= =?UTF-8?q?=E5=8F=AA=E5=9C=A8=E5=AE=B9=E9=87=8F=E9=9D=9E=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=97=B6=E5=86=99=E6=95=B0=E5=AD=97=EF=BC=88=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=8D=81=E5=87=A0=E8=A1=8C=E3=80=8C=E9=BB=98=E8=AE=A4=E3=80=8D?= =?UTF-8?q?=E6=96=87=E5=AD=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/plugins/webui/dashboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/plugins/webui/dashboard.js b/internal/plugins/webui/dashboard.js index 96e8adc..0baea14 100644 --- a/internal/plugins/webui/dashboard.js +++ b/internal/plugins/webui/dashboard.js @@ -738,8 +738,10 @@ if (cap > 0) { var wpx = Math.max(3, Math.min(46, (46 * Math.min(cap, 64)) / 64)); out.push(''); + // 只有**非默认**容量才写数字:默认容量用空轨表达, + // 否则整张图会排满十几行「默认」,与“少文字”背道而驰。 + out.push('' + esc(cap) + ""); } - out.push('' + esc(cap || __("默认", "def")) + ""); }); y += boxH + GAP; });