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

[Empty] iOS 11.4 版本的 svg 图标具有默认 150px 高度,这影响了 Empty 的渲染 #5400

Closed
IronKinoko opened this issue Jun 24, 2022 · 6 comments
Labels

Comments

@IronKinoko
Copy link
Collaborator

Version of antd-mobile

5.16.1

Operating system and its version

iOS

Browser and its version

iOS safari 11.4

Sandbox to reproduce

No response

What happened?

<Empty />

image

解决方案

  • 通过设置 height: 41px 解决

image

  • 通过设置 height: intrinsic 解决

image

Relevant log output

No response

@IronKinoko IronKinoko added the bug label Jun 24, 2022
@awmleer
Copy link
Member

awmleer commented Jun 24, 2022

height: intrinsic 是啥?height: auto 可以不?

@IronKinoko
Copy link
Collaborator Author

image

@awmleer
Copy link
Member

awmleer commented Jun 24, 2022

Older webkit browsers also support the unofficial intrinsic value which acts the same as max-content.

来自 Can I Use

根据这个说明的话,是不是直接用 height: max-content 就可以了?

@IronKinoko
Copy link
Collaborator Author

试过不生效

image

@awmleer
Copy link
Member

awmleer commented Jun 24, 2022

离谱,那就 height: intrinsic 吧…… 1b78356

@awmleer awmleer closed this as completed Jun 24, 2022
@creeperyang
Copy link

height: intrinsic 虽然解决了iOS11的样式兼容问题,但是有几率在iOS14导致页面崩溃。

这里标记一下:去除height: intrinsic 解决iOS页面反复崩溃问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants