From 5c79c2b43132e53d6a025afee380e78896f10709 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 20 Jun 2024 05:18:10 +0800 Subject: [PATCH] Fix new issue/pr avatar (#31419) (#31424) Backport #31419 by @silverwind The avatar on "New Issue" and "New Pull Request" pages was inconsistent. Removed the extra margin and the new CSS rules now use common parent `
` because `.repository.new.issue` is not present on pull request page. Before: Screenshot 2024-06-19 at 13 56 17 Screenshot 2024-06-19 at 13 54 02 After: Screenshot 2024-06-19 at 13 54 16 Screenshot 2024-06-19 at 13 54 22 Co-authored-by: silverwind --- web_src/css/repo.css | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index c79f0ae1cb..25a71e0928 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -530,14 +530,10 @@ td .commit-summary { min-width: 100px; } -.repository.new.issue .comment.form .comment .avatar { +#new-issue .avatar { width: 3em; } -.repository.new.issue .comment.form .content { - margin-left: 4em; -} - .repository.new.issue .comment.form .content::before, .repository.new.issue .comment.form .content::after { right: 100%;