Fix avatar radius problem on the new issue page (#31506)

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:

![圖片](https://github.com/go-gitea/gitea/assets/30816317/bceb98aa-b0f7-4753-bc8b-3b9c41dfd55a)
This commit is contained in:
charles 2024-06-27 22:04:05 +08:00 committed by GitHub
parent c1fe6fbcc3
commit d655ff18b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ td .commit-summary {
min-width: 100px; min-width: 100px;
} }
#new-issue .avatar { #new-issue .comment .avatar {
width: 3em; width: 3em;
} }