Skip to content

Commit f2787ef

Browse files
committed
optimize sign badge style
1 parent 2b2f2e8 commit f2787ef

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

styles/public/label.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ export const shaLabel = css`
129129
// 验证提交附带的图标
130130
span.ui.label.commit-is-signed {
131131
height: 25px;
132+
min-width: 50px;
133+
justify-content: center;
132134
// 验证信任
133135
&.sign-trusted {
134136
border: 1.5px solid ${themeVars.color.green.badge.self} !important;
@@ -161,11 +163,19 @@ export const shaLabel = css`
161163
background-color: ${themeVars.color.red.badge.hover.bg} !important;
162164
}
163165
}
166+
span {
167+
display: inline-flex;
168+
align-items: center;
169+
justify-content: center;
170+
}
164171
}
165172
span.ui.label.commit-is-signed,
166173
.ui.label.commit-id-short,
167174
.ui.label.commit-sign-badge {
168175
font-size: 12px;
176+
.ui.avatar {
177+
border-radius: 9999px;
178+
}
169179
}
170180
`;
171181

0 commit comments

Comments
 (0)