From b3cc3ab82fb769421d17b3d60732318009f7b0ff Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sun, 30 Nov 2025 14:15:34 +0800 Subject: [PATCH] sign badge icon -> font --- styles/templates/repo/commit_sign_badge.ts | 6 ++++++ templates/repo/commit_sign_badge.tmpl | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/styles/templates/repo/commit_sign_badge.ts b/styles/templates/repo/commit_sign_badge.ts index e1b4046..9cd1743 100644 --- a/styles/templates/repo/commit_sign_badge.ts +++ b/styles/templates/repo/commit_sign_badge.ts @@ -32,4 +32,10 @@ export const commitSignBadge = css` } } } + .ui.label.commit-sign-badge.github-theme-commit-sign-badge { + font-family: + -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", + "Segoe UI Emoji"; + font-weight: 500; + } `; diff --git a/templates/repo/commit_sign_badge.tmpl b/templates/repo/commit_sign_badge.tmpl index 7723b28..d029827 100644 --- a/templates/repo/commit_sign_badge.tmpl +++ b/templates/repo/commit_sign_badge.tmpl @@ -59,17 +59,17 @@ so this template should be kept as small as possible, DO NOT put large component {{- end -}} {{- if or (not $commit) $extraClass}}{{/* only show the lock icon if there is no commit info (icon only) or the commit is really signed */}} - + {{- if $verified -}} {{- if and $signingUser $signingUser.ID -}} - {{svg "gitea-lock"}} + Verified {{ctx.AvatarUtils.Avatar $signingUser 16}} {{- else -}} - {{svg "gitea-lock-cog"}} + Partially verified {{ctx.AvatarUtils.AvatarByEmail $signingEmail "" 16}} {{- end -}} {{- else -}} - {{svg "gitea-unlock"}} + Unverified {{- end -}} {{- end -}}