fix: tree growing space #502

pull/538/head
tangjinzhou 2019-02-22 21:34:58 +08:00
parent b1d23c516c
commit 28d7194c94
1 changed files with 18 additions and 2 deletions

View File

@ -22,7 +22,7 @@
}
li {
padding: 8px 0 0;
padding: 4px 0;
margin: 0;
list-style: none;
white-space: nowrap;
@ -164,7 +164,11 @@
}
}
}
ul > li {
&:first-child {
padding-top: 4px;
}
}
> li {
&:first-child {
padding-top: 7px;
@ -178,6 +182,18 @@
&-open {
display: block;
}
// https://github.com/ant-design/ant-design/issues/14958
> li {
// Provide additional padding between top child node and parent node
&:first-child {
padding-top: 8px;
}
// Hide additional padding between last child node and next parent node
&:last-child {
padding-bottom: 0;
}
}
}
li&-treenode-disabled {
> span:not(.@{tree-prefix-cls}-switcher),