1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-15 19:42:04 +00:00

fix(ui): fix alignment of items in tag signature (#9398)

Followup to https://codeberg.org/forgejo/forgejo/pulls/8984. (62f2515138)

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 <wetneb@noreply.codeberg.org>
This commit is contained in:
0ko 2025-09-24 14:54:24 +02:00
parent 02cd96856f
commit a0011375b7
3 changed files with 9 additions and 4 deletions

View file

@ -209,7 +209,7 @@
</div> </div>
{{if .Commit.Signature}} {{if .Commit.Signature}}
<div class="ui bottom attached message signature-row tw-mb-0 {{$class}}"> <div class="ui bottom attached message signature-row tw-mb-0 {{$class}}">
<div class="tw-flex tw-items-center"> <div>
{{if .Verification.Verified}} {{if .Verification.Verified}}
{{if ne .Verification.SigningUser.ID 0}} {{if ne .Verification.SigningUser.ID 0}}
{{svg "gitea-lock" 16 "tw-mr-2"}} {{svg "gitea-lock" 16 "tw-mr-2"}}
@ -233,7 +233,7 @@
<span class="ui text">{{ctx.Locale.Tr .Verification.Reason}}</span> <span class="ui text">{{ctx.Locale.Tr .Verification.Reason}}</span>
{{end}} {{end}}
</div> </div>
<div class="tw-flex tw-items-center"> <div>
{{if .Verification.Verified}} {{if .Verification.Verified}}
{{svg "octicon-verified" 16 "tw-mr-2"}} {{svg "octicon-verified" 16 "tw-mr-2"}}
{{if ne .Verification.SigningUser.ID 0}} {{if ne .Verification.SigningUser.ID 0}}

View file

@ -10,7 +10,7 @@
{{end}} {{end}}
<div class="ui bottom attached message signature-row tw-mb-4 tw-rounded {{$class}}"> <div class="ui bottom attached message signature-row tw-mb-4 tw-rounded {{$class}}">
<div class="tw-flex tw-content-center"> <div>
{{if $v.Verified}} {{if $v.Verified}}
{{if ne $v.SigningUser.ID 0}} {{if ne $v.SigningUser.ID 0}}
{{svg "gitea-lock" 16 "tw-mr-2"}} {{svg "gitea-lock" 16 "tw-mr-2"}}
@ -29,7 +29,7 @@
{{end}} {{end}}
</div> </div>
<div class="tw-flex tw-content-center"> <div>
{{if $v.Verified}} {{if $v.Verified}}
{{if ne $v.SigningUser.ID 0}} {{if ne $v.SigningUser.ID 0}}
{{svg "octicon-verified" 16 "tw-mr-2"}} {{svg "octicon-verified" 16 "tw-mr-2"}}

View file

@ -1984,6 +1984,11 @@ details.repo-search-result summary::marker {
justify-content: space-between; justify-content: space-between;
} }
.signature-row > div {
display: flex;
align-items: center;
}
.commit-header-buttons { .commit-header-buttons {
display: flex; display: flex;
gap: 4px; gap: 4px;