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 数字没有居中 #48593

Open
linxianxi opened this issue Apr 23, 2024 · 2 comments · Fixed by #48605
Open

Badge 数字没有居中 #48593

linxianxi opened this issue Apr 23, 2024 · 2 comments · Fixed by #48605
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@linxianxi
Copy link
Contributor

linxianxi commented Apr 23, 2024

Reproduction link

https://ant.design/components/badge-cn#badge-demo-size

Steps to reproduce

查看

What is expected?

居中

What is actually happening?

没有居中

Environment Info
antd 5.16.4
React latest
System mac
Browser chrome

可以很明显的看出,左右两边空间不一样
image

@li-jia-nan li-jia-nan added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels Apr 23, 2024
@li-jia-nan
Copy link
Member

感觉可以 inline-flex 一把梭

@linxianxi
Copy link
Contributor Author

linxianxi commented Apr 28, 2024

还是有问题,里面的字会跟随浏览器宽度变化,比如有的电脑屏幕大小正好显示是歪的,用 mac 触控板放大后比较明显。
image

2024-04-28.17.49.26.mov

@li-jia-nan li-jia-nan reopened this Apr 28, 2024
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants