From 04d85aa790732d3ddb0e1c76df39257598d67dae Mon Sep 17 00:00:00 2001 From: Matt Furden Date: Tue, 29 Nov 2022 23:30:45 -0800 Subject: [PATCH] Fix lingering white number When cycling through highlighted lines, any line you clicked on kept the while line number as the extension attempted to remove the `text-white` class instead of the `!text-white` class. Now, when clicking lines when you return to the unselected state, the line number is back to its original color. --- webview/src/code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview/src/code.js b/webview/src/code.js index d14dbcb..93acf96 100644 --- a/webview/src/code.js +++ b/webview/src/code.js @@ -38,7 +38,7 @@ const setupLines = (node, config) => { this.parentNode.classList.remove("line-focus"); this.parentNode.classList.remove("git-add"); this.parentNode.classList.remove("git-remove"); - lineNum.classList.remove('text-white') + lineNum.classList.remove('!text-white') } else { this.parentNode.classList.add("line-focus");