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

fix(spin): fix loading not centered #7986

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Zuojiangtao
Copy link

修复spin组件loading未居中的样式bug

实际效果:
image

修复后效果:
image

@tangjinzhou
Copy link
Member

官网看着没问题啊

@Zuojiangtao
Copy link
Author

看了下,官网的确实没问题,我自己又在新项目看了下,找到了问题所在,是一个设置默认的最大高度的
导致的。

image

image

codesandbox示例

当spin组件包裹的高度超过400时就不居中了。

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 this pull request may close these issues.

2 participants