Fix line-button issue after file selection in file tree (#34574)

Fix the issue where the line-button fails to work after selecting a file
from the file tree.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Kerwin Bryantandwxiaoguang authored and GitHub committed 2025-06-02 09:52:12 +08:00
1 parent bb6377d080
commit 74858dc5ae
3 files changed
+35 -11

No files matched your search

+5 -1
View File
@@ -1,7 +1,10 @@
.file-view tr.active {
.file-view tr.active .lines-num,
.file-view tr.active .lines-escape,
.file-view tr.active .lines-code {
background: var(--color-highlight-bg);
}
/* set correct border radius on the last active lines, to avoid border overflow */
.file-view tr.active:last-of-type .lines-code {
border-bottom-right-radius: var(--border-radius);
}
@@ -10,6 +13,7 @@
position: relative;
}
/* add a darker "handler" at the beginning of the active line */
.file-view tr.active .lines-num::before {
content: "";
position: absolute;