Skip to content

Commit

Permalink
fix: tree growing space vueComponent#502
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Feb 22, 2019
1 parent b1d23c5 commit 28d7194
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions components/tree/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

li {
padding: 8px 0 0;
padding: 4px 0;
margin: 0;
list-style: none;
white-space: nowrap;
Expand Down Expand Up @@ -164,7 +164,11 @@
}
}
}

ul > li {
&:first-child {
padding-top: 4px;
}
}
> li {
&:first-child {
padding-top: 7px;
Expand All @@ -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),
Expand Down

0 comments on commit 28d7194

Please sign in to comment.