mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: replace deprecated property
This commit is contained in:
@@ -125,8 +125,8 @@ window.qBittorrent.ProgressBar ??= (() => {
|
|||||||
this.vals.light.textContent = displayedValue;
|
this.vals.light.textContent = displayedValue;
|
||||||
|
|
||||||
const r = parseInt((this.vals.width * (value / 100)), 10);
|
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.dark.style.clipPath = `inset(0 calc(100% - ${r}px) 0 0)`;
|
||||||
this.vals.light.setStyle("clip", `rect(0, ${this.vals.width}px, ${this.vals.height}px, ${r}px)`);
|
this.vals.light.style.clipPath = `inset(0 0 0 ${r}px)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ProgressBar_setWidth(value) {
|
function ProgressBar_setWidth(value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user