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 2222 }
2323
2424 li {
25- padding : 8 px 0 0 ;
25+ padding : 4 px 0 ;
2626 margin : 0 ;
2727 list-style : none ;
2828 white-space : nowrap ;
164164 }
165165 }
166166 }
167-
167+ ul > li {
168+ & :first-child {
169+ padding-top : 4px ;
170+ }
171+ }
168172 > li {
169173 & :first-child {
170174 padding-top : 7px ;
178182 &-open {
179183 display : block ;
180184 }
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+ }
181197 }
182198 li&-treenode-disabled {
183199 > span :not (.@{tree-prefix-cls} -switcher ),
You can’t perform that action at this time.
0 commit comments