Skip to content

Commit a57ad3b

Browse files
committed
Fix SHA badge with avatar
1 parent 80f5df0 commit a57ad3b

File tree

3 files changed

+8
-23
lines changed

3 files changed

+8
-23
lines changed

templates/repo/shabox_badge.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<div title="{{if eq .verification.TrustStatus "trusted"}}{{else if eq .verification.TrustStatus "untrusted"}}{{$.root.i18n.Tr "repo.commits.signed_by_untrusted_user"}}: {{else}}{{$.root.i18n.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}}{{.verification.Reason}}">
44
{{if ne .verification.SigningUser.ID 0}}
55
{{svg "gitea-lock" 12}}
6-
{{avatar .verification.SigningUser 28 "signature"}}
6+
{{avatar .verification.SigningUser 14 "signature"}}
77
{{else}}
88
<span title="{{$.root.i18n.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog" 12}}</span>
9-
{{avatarByEmail .verification.SigningEmail "" 28 "signature"}}
9+
{{avatarByEmail .verification.SigningEmail "" 14 "signature"}}
1010
{{end}}
1111
</div>
1212
{{else}}

web_src/less/_repository.less

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@
13341334
text-align: center;
13351335
}
13361336

1337-
width: 140px;
1337+
width: 154px;
13381338
}
13391339

13401340
.age {
@@ -1362,15 +1362,15 @@
13621362
border: 1px solid var(--color-light-border);
13631363

13641364
.ui.signature.avatar {
1365-
height: 16px;
1366-
margin-bottom: 0;
1367-
width: 16px;
1365+
height: 14px;
1366+
margin: -1px 1px;
1367+
width: 14px;
13681368
}
13691369

13701370
.detail.icon {
13711371
background: var(--color-light);
13721372
margin: -6px -10px -4px 0;
1373-
padding: 5px 4px 6px 6px;
1373+
padding: 5.4px 4px 5.5px 6px;
13741374
border-left: 1px solid var(--color-light-border);
13751375
border-top: 0;
13761376
border-right: 0;
@@ -1415,11 +1415,6 @@
14151415
border: 1px solid #21ba45;
14161416
background: fade(#21ba45, 10%);
14171417

1418-
.shortsha {
1419-
display: inline-block;
1420-
padding-top: 1px;
1421-
}
1422-
14231418
.detail.icon {
14241419
border-left: 1px solid #21ba45;
14251420
color: #21ba45;
@@ -1434,11 +1429,6 @@
14341429
border: 1px solid #fbbd08;
14351430
background: fade(#fbbd08, 10%);
14361431

1437-
.shortsha {
1438-
display: inline-block;
1439-
padding-top: 1px;
1440-
}
1441-
14421432
.detail.icon {
14431433
border-left: 1px solid #fbbd08;
14441434
color: #fbbd08;
@@ -1453,11 +1443,6 @@
14531443
border: 1px solid #f2711c;
14541444
background: fade(#f2711c, 10%);
14551445

1456-
.shortsha {
1457-
display: inline-block;
1458-
padding-top: 1px;
1459-
}
1460-
14611446
.detail.icon {
14621447
border-left: 1px solid #f2711c;
14631448
color: #f2711c;

web_src/less/features/gitgraph.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
}
132132

133133
.sha.label .ui.detail.icon.button {
134-
padding-top: 3px;
134+
padding-top: 4.5px;
135135
margin-top: -5px;
136136
}
137137

0 commit comments

Comments
 (0)