-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 avatar radius problem on the new issue page #31506
Conversation
Ideally we should size avatars correctly inside the templates only and remove all the CSS that alters their size, it's unnecessary. |
@silverwind |
Fix is fine to take as a quick fix. It was a regression from #31419. |
Close go-gitea#31502 Related to go-gitea#31419. In this PR, the avatar width is set to 3em, but the height is not set, so the image is not squared. When object-fit is set to contain, it can't maintain the radius of the image. Result: ![圖片](https://github.com/go-gitea/gitea/assets/30816317/bceb98aa-b0f7-4753-bc8b-3b9c41dfd55a)
Backport #31506 by charles7668 Co-authored-by: charles <[email protected]>
* giteaofficial/main: Fix avatar radius problem on the new issue page (go-gitea#31506) Make toast support preventDuplicates (go-gitea#31501) Improve attachment upload methods (go-gitea#30513)
Close #31502
Related to #31419.
In this PR, the avatar width is set to 3em, but the height is not set, so the image is not squared.
When object-fit is set to contain, it can't maintain the radius of the image.
Result: