WebUI: fix invalid style

`initial` isn't applicable to `borderLeft`/`borderRight`.
This commit is contained in:
Chocobo1 2024-11-26 00:17:39 +08:00
parent 24d349ffba
commit ef5506321a
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -224,11 +224,15 @@ window.qBittorrent.DynamicTable ??= (() => {
changeBorderSide = "left";
}
const borderStyle = "initial solid #e60";
if (changeBorderSide === "left")
const borderStyle = "solid #e60";
if (changeBorderSide === "left") {
borderChangeElement.style.borderLeft = borderStyle;
else
borderChangeElement.style.borderLeftWidth = "initial";
}
else {
borderChangeElement.style.borderRight = borderStyle;
borderChangeElement.style.borderRightWidth = "initial";
}
resetElementBorderStyle(borderChangeElement, ((changeBorderSide === "right") ? "left" : "right"));