-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Please, please be optimistic about the problem, I can not set the rounded corner picture #427
Comments
Yes, I know, it can be set like this <n-image class="my-image" width="32" src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg" /> .my-image img {
border-radius: 50%;
} But I think it should be like this <n-image style="border-radius:50%;" width="32" src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg" /> or <n-image rounded width="32" src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg" /> Okay, maybe you think this is a bit unreasonable, this is the last time I have raised this issue. I also know that this reason is for compatible viewing of pictures, so there are multiple roots of the component, which makes the styles unable to be inherited. |
I think you can setting the border-radius of img to inherit can resolve the problem |
@TuiMao233 We will fix it |
Now border radius should work |
This function solves the problem (这个功能解决的问题)
This is the way I followed yours, the picture does not appear rounded corners
#409
Expected API (期望的 API)
#409
The text was updated successfully, but these errors were encountered: