From 8d921101576e40598b118582f0e11ad27aae32a2 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 22 Jan 2022 18:39:05 +0300 Subject: [PATCH] fill-box - keep height as a parameter --- components/fill-box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fill-box.js b/components/fill-box.js index eecfda92..02912f3b 100644 --- a/components/fill-box.js +++ b/components/fill-box.js @@ -7,7 +7,6 @@ } fill-box > svg { - aspect-ratio: 1; vertical-align: middle; pointer-events: none; } @@ -38,6 +37,7 @@ this.appendChild(template.content.cloneNode(true)); this.querySelector("rect")?.setAttribute("fill", this.fill); this.querySelector("svg")?.setAttribute("width", this.size); + this.querySelector("svg")?.setAttribute("height", this.size); } static showTip() {