From 958d0db4f47e98cc6cad8cddf3bec2e9b7a8736b Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 18 Jun 2025 12:22:23 +0800 Subject: [PATCH] Improve alignment of commit status icon on commit page (#34750) (#34757) Backport #34750 by @silverwind Before, icon vertically misaligned: Screenshot 2025-06-17 at 18 14 26 After, icon correctly vertically centered: Screenshot 2025-06-17 at 18 14 40 I think it's fine to single out this one case and not alter `flex-text-inline` because that class seems to work well in other places. Co-authored-by: silverwind --- templates/repo/commit_page.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index 7abd377108..fb0a63eff7 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -5,7 +5,7 @@
-

{{ctx.RenderUtils.RenderCommitMessage .Commit.Message $.Repository}}{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses}}

+

{{ctx.RenderUtils.RenderCommitMessage .Commit.Message $.Repository}}{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "AdditionalClasses" "tw-inline"}}

{{if not $.PageIsWiki}}