Skip to content

Commit b255c4a

Browse files
committed
style: Update tree lines and arrows for improved spacing and visual consistency
1 parent a3ae7fa commit b255c4a

File tree

1 file changed

+48
-24
lines changed

1 file changed

+48
-24
lines changed

style.css

Lines changed: 48 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,46 +44,69 @@
4444
.tree-lines {
4545
display: inline-flex;
4646
align-items: center;
47-
height: 22px;
48-
margin-right: 2px;
47+
margin-right: 4px;
4948
user-select: none;
49+
gap: 0;
5050
}
5151
.tree-vline {
5252
display: inline-block;
53-
width: 1px;
53+
width: 16px;
5454
height: 22px;
55-
background: #4a4a4a;
56-
margin: 0 7.5px;
55+
position: relative;
5756
flex-shrink: 0;
5857
}
58+
.tree-vline::after {
59+
content: '';
60+
position: absolute;
61+
left: 7px;
62+
top: 0;
63+
width: 1px;
64+
height: 22px;
65+
background: #3e3e3e;
66+
}
5967
.tree-branch {
6068
display: inline-block;
61-
width: 8px;
62-
height: 11px;
63-
border-left: 1px solid #4a4a4a;
64-
border-bottom: 1px solid #4a4a4a;
65-
margin: 0 7.5px 0 0;
69+
width: 16px;
70+
height: 22px;
71+
position: relative;
6672
flex-shrink: 0;
67-
align-self: flex-start;
68-
margin-top: -11px;
6973
}
70-
.tree-branch-last {
74+
.tree-branch::before {
75+
content: '';
76+
position: absolute;
77+
left: 7px;
78+
top: 0;
79+
width: 1px;
7180
height: 11px;
72-
border-left: 1px solid #4a4a4a !important;
81+
background: #3e3e3e;
82+
}
83+
.tree-branch::after {
84+
content: '';
85+
position: absolute;
86+
left: 7px;
87+
top: 11px;
88+
width: 8px;
89+
height: 1px;
90+
background: #3e3e3e;
91+
}
92+
.tree-branch-last::before {
93+
display: none;
7394
}
7495
.tree-arrow {
75-
width: 14px;
76-
height: 14px;
77-
vertical-align: middle;
78-
margin-right: 2px;
96+
width: 16px;
97+
height: 16px;
98+
display: block;
7999
transition: none;
80-
display: inline-block;
100+
cursor: pointer;
101+
opacity: 0.8;
102+
}
103+
.tree-arrow:hover {
104+
opacity: 1;
81105
}
82106
.tree-arrow-placeholder {
83107
display: inline-block;
84-
width: 14px;
85-
height: 14px;
86-
margin-right: 2px;
108+
width: 16px;
109+
height: 16px;
87110
}
88111
/* Tree lines and arrows */
89112
.tree-lines {
@@ -539,11 +562,12 @@ html, body {
539562
padding: 0;
540563
width: 16px;
541564
height: 16px;
542-
display: flex;
565+
display: inline-flex;
543566
align-items: center;
544567
justify-content: center;
545568
flex-shrink: 0;
546-
transition: transform 0.15s ease;
569+
transition: none;
570+
margin-right: 2px;
547571
}
548572

549573
.expand-btn .material-symbols-outlined {

0 commit comments

Comments
 (0)