From ef5506321a1f6c4b1eddf65d152ea4d5e7061b7a Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 26 Nov 2024 00:17:39 +0800 Subject: [PATCH] WebUI: fix invalid style `initial` isn't applicable to `borderLeft`/`borderRight`. --- src/webui/www/private/scripts/dynamicTable.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 849dd2ef2..a1442407d 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -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"));