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

[Bug] Icon cannot be displayed when used with nuxt-ui #221

Closed
zzy-life opened this issue Jul 29, 2024 · 4 comments
Closed

[Bug] Icon cannot be displayed when used with nuxt-ui #221

zzy-life opened this issue Jul 29, 2024 · 4 comments

Comments

@zzy-life
Copy link

url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M20 6c0-2.168-3.663-4-8-4S4 3.832 4 6v2c0 2.168 3.663 4 8 4s8-1.832 8-4V6zm-8 13c-4.337 0-8-1.832-8-4v3c0 2.168 3.663 4 8 4s8-1.832 8-4v-3c0 2.168-3.663 4-8 4z' fill='black'/%3E%3Cpath d='M20 10c0 2.168-3.663 4-8 4s-8-1.832-8-4v3c0 2.168 3.663 4 8 4s8-1.832 8-4v-3z' fill='black'/%3E%3C/svg%3E")

The test environment is fine, but the production environment will not be able to display the icon. If I change the https in xmlns to http, it will display.

image

@zzy-life
Copy link
Author

image
Why does it automatically convert to https?
0.6.8 is normal

@zzy-life zzy-life changed the title Icon cannot be displayed when used with nuxt-ui [Bug] Icon cannot be displayed when used with nuxt-ui Jul 29, 2024
@zzy-life
Copy link
Author

Finally fixed this....setting mode to svg solved the problem, but I guess this is not the root solution

@antfu
Copy link
Member

antfu commented Jul 29, 2024

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

@antfu antfu closed this as completed Jul 29, 2024
@zzy-life
Copy link
Author

#212 #228
Similar problem, this should be taken seriously, it is broken in 1.0.0

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

No branches or pull requests

2 participants