File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 22
22
}
23
23
24
24
li {
25
- padding : 8 px 0 0 ;
25
+ padding : 4 px 0 ;
26
26
margin : 0 ;
27
27
list-style : none ;
28
28
white-space : nowrap ;
164
164
}
165
165
}
166
166
}
167
-
167
+ ul > li {
168
+ & :first-child {
169
+ padding-top : 4px ;
170
+ }
171
+ }
168
172
> li {
169
173
& :first-child {
170
174
padding-top : 7px ;
178
182
&-open {
179
183
display : block ;
180
184
}
185
+ // https://github.com/ant-design/ant-design/issues/14958
186
+ > li {
187
+ // Provide additional padding between top child node and parent node
188
+ & :first-child {
189
+ padding-top : 8px ;
190
+ }
191
+
192
+ // Hide additional padding between last child node and next parent node
193
+ & :last-child {
194
+ padding-bottom : 0 ;
195
+ }
196
+ }
181
197
}
182
198
li&-treenode-disabled {
183
199
> span :not (.@{tree-prefix-cls} -switcher ),
You can’t perform that action at this time.
0 commit comments