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

Badge组件显示问题,当布局为display: flex,并且flex-direction: column时,badge的宽度会被父元素影响 #39604

Closed
AydenGen opened this issue Dec 16, 2022 · 0 comments · Fixed by #39605

Comments

@AydenGen
Copy link
Contributor

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 引入 <Badge /> 组建
  2. 父元素为 <div style={{ display: "flex", flexDirection: "column" }}><Badge /></div>

What is expected?

badge 的宽度不受父元素影响,正常显示

What is actually happening?

badge 的宽度受父元素影响

Environment Info
antd 5.0.7
React react
System Mac OS 13.2 Beta版(22D5027d)
Browser Chromium: 102.0.5005.167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant