WebUI: replace deprecated property

This commit is contained in:
Chocobo1 2024-08-09 22:28:23 +08:00
parent 5afeecbf18
commit 0c7045042d
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -125,8 +125,8 @@ window.qBittorrent.ProgressBar ??= (() => {
this.vals.light.textContent = displayedValue;
const r = parseInt((this.vals.width * (value / 100)), 10);
this.vals.dark.setStyle("clip", `rect(0, ${r}px, ${this.vals.height}px, 0)`);
this.vals.light.setStyle("clip", `rect(0, ${this.vals.width}px, ${this.vals.height}px, ${r}px)`);
this.vals.dark.style.clipPath = `inset(0 calc(100% - ${r}px) 0 0)`;
this.vals.light.style.clipPath = `inset(0 0 0 ${r}px)`;
}
function ProgressBar_setWidth(value) {