Skip to content

Commit 1bec6c6

Browse files
committed
feat: Update tree branch styling for improved visual hierarchy and clarity
1 parent 7c20215 commit 1bec6c6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,9 +899,8 @@
899899
for (let i = 0; i < parents.length; ++i) {
900900
lines += `<span class="tree-vline" style="visibility:${parents[i] ? 'visible' : 'hidden'}"></span>`;
901901
}
902-
// For the current node, add a connector (├ or └)
903902
if (parents.length > 0) {
904-
lines += `<span class="tree-vline tree-branch" style="height:22px;${isLast ? 'border-left:2px solid transparent;' : ''}"></span>`;
903+
lines += `<span class="tree-branch${isLast ? ' tree-branch-last' : ''}"></span>`;
905904
}
906905
return lines;
907906
}

style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
top: 2px;
7474
left: -2px;
7575
}
76+
.tree-branch-last {
77+
border-left: 2px solid transparent !important;
78+
}
7679
.tree-arrow {
7780
width: 14px;
7881
height: 14px;

0 commit comments

Comments
 (0)