Skip to content

Commit

Permalink
Fix avatar radius problem on the new issue page (go-gitea#31506)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
charles7668 authored Jun 27, 2024
1 parent c1fe6fb commit d655ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ td .commit-summary {
min-width: 100px;
}

#new-issue .avatar {
#new-issue .comment .avatar {
width: 3em;
}

Expand Down

0 comments on commit d655ff1

Please sign in to comment.