diff --git a/templates/repo/commit_header.tmpl b/templates/repo/commit_header.tmpl index f0c094c9bd..6926a95300 100644 --- a/templates/repo/commit_header.tmpl +++ b/templates/repo/commit_header.tmpl @@ -208,7 +208,7 @@ {{if .Commit.Signature}} -
+
{{if .Verification.Verified}} {{if ne .Verification.SigningUser.ID 0}} diff --git a/templates/repo/tag/verification_line.tmpl b/templates/repo/tag/verification_line.tmpl index 781f627e0c..f89ca91343 100644 --- a/templates/repo/tag/verification_line.tmpl +++ b/templates/repo/tag/verification_line.tmpl @@ -9,7 +9,7 @@ {{$class = (print $class " isWarning")}} {{end}} -
+
{{if $v.Verified}} {{if ne $v.SigningUser.ID 0}} diff --git a/tests/integration/pull_commit_test.go b/tests/integration/pull_commit_test.go index 8a632fa338..1f9a6ffd22 100644 --- a/tests/integration/pull_commit_test.go +++ b/tests/integration/pull_commit_test.go @@ -137,7 +137,7 @@ func TestPullCommitSignature(t *testing.T) { resp := testCtx.Session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) - htmlDoc.AssertElement(t, "#diff-commit-header .commit-header-row.message.isSigned.isVerified", true) + htmlDoc.AssertElement(t, "#diff-commit-header .signature-row.message.isSigned.isVerified", true) }) }) } diff --git a/tests/integration/repo_signed_tag_test.go b/tests/integration/repo_signed_tag_test.go index 16d8841304..0ef256ef5f 100644 --- a/tests/integration/repo_signed_tag_test.go +++ b/tests/integration/repo_signed_tag_test.go @@ -68,8 +68,8 @@ func TestRepoSSHSignedTags(t *testing.T) { resp := MakeRequest(t, req, http.StatusOK) doc := NewHTMLParser(t, resp.Body) - doc.AssertElement(t, ".tag-signature-row .gitea-unlock", !isSigned) - doc.AssertElement(t, ".tag-signature-row .gitea-lock", isSigned) + doc.AssertElement(t, ".signature-row .gitea-unlock", !isSigned) + doc.AssertElement(t, ".signature-row .gitea-lock", isSigned) } t.Run("unverified", func(t *testing.T) { diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go index 898d0d1fa6..f8b926e8be 100644 --- a/tests/integration/repo_test.go +++ b/tests/integration/repo_test.go @@ -775,7 +775,7 @@ func TestViewCommitSignature(t *testing.T) { resp = testCtx.Session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) - htmlDoc.AssertElement(t, ".commit-header-row.message.isSigned.isVerified", true) + htmlDoc.AssertElement(t, ".signature-row.message.isSigned.isVerified", true) }) }) } diff --git a/web_src/css/repo.css b/web_src/css/repo.css index ac671cf0ad..e8d32ab09b 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1972,21 +1972,16 @@ details.repo-search-result summary::marker { padding-top: 15px; } -.commit-header-row, -.tag-signature-row { +.commit-header-row { min-height: 50px !important; - padding-top: 0 !important; - padding-bottom: 0 !important; } -.ui.attached.message.tag-signature-row { - border-radius: var(--border-radius); -} - -.tag-signature-row div { - margin-top: auto !important; - margin-bottom: auto !important; - display: inline-block !important; +.signature-row { + display: flex; + flex-wrap: wrap; + padding: 0.75rem 1rem !important; + gap: 0.5rem 1rem; + justify-content: space-between; } .commit-header-buttons {