From d655ff18b3183807dc568b133035c7c555e3b595 Mon Sep 17 00:00:00 2001 From: charles <30816317+charles7668@users.noreply.github.com> Date: Thu, 27 Jun 2024 22:04:05 +0800 Subject: [PATCH] Fix avatar radius problem on the new issue page (#31506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- web_src/css/repo.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 28b84d3af..f37ea3110 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -535,7 +535,7 @@ td .commit-summary { min-width: 100px; } -#new-issue .avatar { +#new-issue .comment .avatar { width: 3em; }