mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-05 14:47:25 +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";
|
||||
}
|
||||
|
||||
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"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue