File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
apps/site/components/EOL/VulnerabilityChips
packages/ui-components/src/styles Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,7 @@ const VulnerabilityChip: FC<VulnerabilityChipProps> = ({
20
20
const t = useTranslations ( ) ;
21
21
22
22
return (
23
- < Badge
24
- size = "small"
25
- kind = { SEVERITY_KIND_MAP [ severity ] as BadgeKind }
26
- className = "mr-1"
27
- >
23
+ < Badge size = "small" kind = { SEVERITY_KIND_MAP [ severity ] as BadgeKind } >
28
24
{ count > 0 ? < span className = { styles . chipCount } > { count } </ span > : null }
29
25
{ t ( `components.eolChip.severity.${ severity } ` ) }
30
26
</ Badge >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const VulnerabilityChips: FC<VulnerabilityChipsProps> = ({
23
23
) ;
24
24
25
25
return (
26
- < div className = "vulnerability-chips " >
26
+ < div className = "flex flex-row flex-wrap gap-2 max-sm:justify-end " >
27
27
{ SEVERITY_ORDER . filter ( severity => groupedBySeverity [ severity ] > 0 ) . map (
28
28
severity => (
29
29
< VulnerabilityChip
Original file line number Diff line number Diff line change @@ -184,15 +184,16 @@ main {
184
184
block
185
185
border-b
186
186
py-2
187
- pl-[50 % ]
187
+ pl-[33 % ]
188
188
text-right
189
189
text-neutral-600
190
190
before:absolute
191
191
before:left-0
192
192
before:top-1/2
193
- before:w-1/2
193
+ before:w-1/3
194
194
before:-translate-y-1/2
195
195
before:break-words
196
+ before:text-left
196
197
before:font-medium
197
198
before:text-neutral-700
198
199
before:content-[attr (data-label)]
You can’t perform that action at this time.
0 commit comments