-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
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: 
* 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:
