Skip to content

Commit 2cf1004

Browse files
committed
fix: normalize CRL certificate type chip spacing
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e77cbae commit 2cf1004

File tree

1 file changed

+41
-7
lines changed

1 file changed

+41
-7
lines changed

src/views/CrlManagement/CrlManagement.vue

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,19 @@
156156
<td class="crl-table__cell--monospace">{{ entry.serial_number }}</td>
157157
<td>
158158
<span v-if="entry.certificate_type === 'root'" class="certificate-type certificate-type--root">
159-
<NcIconSvgWrapper :path="mdiShieldLock" :size="16" />
159+
<span class="certificate-type__icon">
160+
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
161+
<path :d="mdiShieldLock" />
162+
</svg>
163+
</span>
160164
{{ t('libresign', 'Root CA') }}
161165
</span>
162166
<span v-else-if="entry.certificate_type === 'intermediate'" class="certificate-type certificate-type--intermediate">
163-
<NcIconSvgWrapper :path="mdiShieldLock" :size="16" />
167+
<span class="certificate-type__icon">
168+
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
169+
<path :d="mdiShieldLock" />
170+
</svg>
171+
</span>
164172
{{ t('libresign', 'Intermediate CA') }}
165173
</span>
166174
<span v-else class="certificate-type certificate-type--user">
@@ -854,11 +862,16 @@ export default {
854862
}
855863
856864
.status-badge {
857-
display: inline-block;
858-
padding: 4px 8px;
859-
border-radius: 12px;
865+
display: inline-flex;
866+
align-items: center;
867+
justify-content: center;
868+
height: 26px;
869+
padding: 0 10px;
870+
border-radius: 13px;
871+
box-sizing: border-box;
860872
font-size: 12px;
861873
font-weight: 600;
874+
line-height: 1;
862875
text-transform: uppercase;
863876
864877
&--issued {
@@ -880,11 +893,32 @@ export default {
880893
.certificate-type {
881894
display: inline-flex;
882895
align-items: center;
896+
justify-content: center;
883897
gap: 4px;
884-
padding: 4px 8px;
885-
border-radius: 12px;
898+
height: 26px;
899+
padding: 0 10px;
900+
border-radius: 13px;
901+
box-sizing: border-box;
886902
font-size: 12px;
887903
font-weight: 600;
904+
line-height: 1;
905+
906+
&__icon {
907+
display: inline-flex;
908+
align-items: center;
909+
justify-content: center;
910+
width: 14px;
911+
height: 14px;
912+
flex: 0 0 14px;
913+
line-height: 0;
914+
915+
svg {
916+
display: block;
917+
width: 14px;
918+
height: 14px;
919+
fill: currentColor;
920+
}
921+
}
888922
889923
&--root {
890924
background-color: #e3f2fd;

0 commit comments

Comments
 (0)