From a0011375b7669735b7f6d958466ab84f7933b6cd Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Wed, 24 Sep 2025 14:54:24 +0200 Subject: [PATCH] fix(ui): fix alignment of items in tag signature (#9398) Followup to https://codeberg.org/forgejo/forgejo/pulls/8984. (62f2515138fe33ef5261548cd5ba90a2d09ef5bc) Before: https://codeberg.org/attachments/01a29d33-adae-4e6f-971b-d4871341bd9c After: https://codeberg.org/attachments/c11b7391-aeab-4451-a5be-00f700bf3746 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9398 Reviewed-by: Antonin Delpeuch --- templates/repo/commit_header.tmpl | 4 ++-- templates/repo/tag/verification_line.tmpl | 4 ++-- web_src/css/repo.css | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/repo/commit_header.tmpl b/templates/repo/commit_header.tmpl index 6926a95300..0787fb054c 100644 --- a/templates/repo/commit_header.tmpl +++ b/templates/repo/commit_header.tmpl @@ -209,7 +209,7 @@ {{if .Commit.Signature}}
-
+
{{if .Verification.Verified}} {{if ne .Verification.SigningUser.ID 0}} {{svg "gitea-lock" 16 "tw-mr-2"}} @@ -233,7 +233,7 @@ {{ctx.Locale.Tr .Verification.Reason}} {{end}}
-
+
{{if .Verification.Verified}} {{svg "octicon-verified" 16 "tw-mr-2"}} {{if ne .Verification.SigningUser.ID 0}} diff --git a/templates/repo/tag/verification_line.tmpl b/templates/repo/tag/verification_line.tmpl index f89ca91343..5081a2268b 100644 --- a/templates/repo/tag/verification_line.tmpl +++ b/templates/repo/tag/verification_line.tmpl @@ -10,7 +10,7 @@ {{end}}
-
+
{{if $v.Verified}} {{if ne $v.SigningUser.ID 0}} {{svg "gitea-lock" 16 "tw-mr-2"}} @@ -29,7 +29,7 @@ {{end}}
-
+
{{if $v.Verified}} {{if ne $v.SigningUser.ID 0}} {{svg "octicon-verified" 16 "tw-mr-2"}} diff --git a/web_src/css/repo.css b/web_src/css/repo.css index e8d32ab09b..87fca9024a 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1984,6 +1984,11 @@ details.repo-search-result summary::marker { justify-content: space-between; } +.signature-row > div { + display: flex; + align-items: center; +} + .commit-header-buttons { display: flex; gap: 4px;