mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-07 07:37:24 +03:00
WebUI: fix invalid style
`initial` isn't applicable to `borderLeft`/`borderRight`.
This commit is contained in:
parent
24d349ffba
commit
ef5506321a
1 changed files with 7 additions and 3 deletions
|
@ -224,11 +224,15 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
changeBorderSide = "left";
|
changeBorderSide = "left";
|
||||||
}
|
}
|
||||||
|
|
||||||
const borderStyle = "initial solid #e60";
|
const borderStyle = "solid #e60";
|
||||||
if (changeBorderSide === "left")
|
if (changeBorderSide === "left") {
|
||||||
borderChangeElement.style.borderLeft = borderStyle;
|
borderChangeElement.style.borderLeft = borderStyle;
|
||||||
else
|
borderChangeElement.style.borderLeftWidth = "initial";
|
||||||
|
}
|
||||||
|
else {
|
||||||
borderChangeElement.style.borderRight = borderStyle;
|
borderChangeElement.style.borderRight = borderStyle;
|
||||||
|
borderChangeElement.style.borderRightWidth = "initial";
|
||||||
|
}
|
||||||
|
|
||||||
resetElementBorderStyle(borderChangeElement, ((changeBorderSide === "right") ? "left" : "right"));
|
resetElementBorderStyle(borderChangeElement, ((changeBorderSide === "right") ? "left" : "right"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue