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

Space component with wrap has bad margins #30989

Closed
1 task done
lriho opened this issue Jun 15, 2021 · 1 comment · Fixed by #31000
Closed
1 task done

Space component with wrap has bad margins #30989

lriho opened this issue Jun 15, 2021 · 1 comment · Fixed by #31000
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it

Comments

@lriho
Copy link

lriho commented Jun 15, 2021

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Use antd > 4.16.0 to see the issue. Using antd 4.15.6 works as expected.

What is expected?

Expect wrapping Space items not to touch the border of the Card

What is actually happening?

Space items spanning at least two rows touch the border of the card because of negative margin

Environment Info
antd 4.16.0
React 17.0.2
System -
Browser all

Likely introduced in #30023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants