From 83aa8aa93e358d3c6042c234aece58e2e59b886c Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 15:15:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20HiChart=E4=B8=8D=E8=AE=BEstyle.width=20?= =?UTF-8?q?=E8=AE=A9CSS=20100%=E7=AE=A1=E6=98=BE=E7=A4=BA=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 4233db2..2ce79ef 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -162,8 +162,7 @@ var h = 60; this.canvas.width = w * this._dpr; this.canvas.height = h * this._dpr; - this.canvas.style.width = w + 'px'; - this.canvas.style.height = h + 'px'; + // CSS controls display size via width:100%;height:60px this.ctx.setTransform(this._dpr, 0, 0, this._dpr, 0, 0); this._draw(); };