From f2787efcd96306825bb15c5d122324b273548512 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sun, 30 Nov 2025 12:09:21 +0800 Subject: [PATCH] optimize sign badge style --- styles/public/label.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/styles/public/label.ts b/styles/public/label.ts index fdbc9dc..9d22c6d 100644 --- a/styles/public/label.ts +++ b/styles/public/label.ts @@ -129,6 +129,8 @@ export const shaLabel = css` // 验证提交附带的图标 span.ui.label.commit-is-signed { height: 25px; + min-width: 50px; + justify-content: center; // 验证信任 &.sign-trusted { border: 1.5px solid ${themeVars.color.green.badge.self} !important; @@ -161,11 +163,19 @@ export const shaLabel = css` background-color: ${themeVars.color.red.badge.hover.bg} !important; } } + span { + display: inline-flex; + align-items: center; + justify-content: center; + } } span.ui.label.commit-is-signed, .ui.label.commit-id-short, .ui.label.commit-sign-badge { font-size: 12px; + .ui.avatar { + border-radius: 9999px; + } } `;