Skip to content

Commit 0c70450

Browse files
committed
WebUI: replace deprecated property
1 parent 5afeecb commit 0c70450

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/webui/www/private/scripts/progressbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ window.qBittorrent.ProgressBar ??= (() => {
125125
this.vals.light.textContent = displayedValue;
126126

127127
const r = parseInt((this.vals.width * (value / 100)), 10);
128-
this.vals.dark.setStyle("clip", `rect(0, ${r}px, ${this.vals.height}px, 0)`);
129-
this.vals.light.setStyle("clip", `rect(0, ${this.vals.width}px, ${this.vals.height}px, ${r}px)`);
128+
this.vals.dark.style.clipPath = `inset(0 calc(100% - ${r}px) 0 0)`;
129+
this.vals.light.style.clipPath = `inset(0 0 0 ${r}px)`;
130130
}
131131

132132
function ProgressBar_setWidth(value) {

0 commit comments

Comments
 (0)