Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree Component: the node spacing is getting bigger if the node has a number of child #502

Closed
1 task
agoni1212 opened this issue Feb 20, 2019 · 6 comments
Closed
1 task
Labels

Comments

@agoni1212
Copy link
Contributor

agoni1212 commented Feb 20, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.4

Environment

1.3.4

Reproduction link

Edit on CodeSandbox

Steps to reproduce

link to https://codesandbox.io/s/24kj72mj2p

What is expected?

normal spacing between tree node

What is actually happening?

growing spacing

@tangjinzhou
Copy link
Member

According to the specification, we need a hierarchical relationship.
If you don't need it, you can override the style.

.ant-tree li ul {
 padding-left: 0;
}

@agoni1212
Copy link
Contributor Author

agoni1212 commented Feb 21, 2019

@tangjinzhou you may misunderstand what i meant
the spacing between node 0-0-0-0-15 and not 0-1 is too height in vertical.
to make it clear , i add the style you pointed out , https://codesandbox.io/s/24kj72mj2p

What the important thing is the vertical spacing will grow if the child has child

@tangjinzhou
Copy link
Member

I get it.
you can add code:

.ant-tree li {
    padding: 8px 0 0;
}

We will fix it in next version.

tangjinzhou added a commit that referenced this issue Feb 21, 2019
@agoni1212
Copy link
Contributor Author

@tangjinzhou the commit you added makes the node spacing between each other is higher than before

@tangjinzhou
Copy link
Member

@agoni1212 I will continue to optimize. Thanks for feedback.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants