File tree Expand file tree Collapse file tree
apps/site/components/EOL/VulnerabilityChips
packages/ui-components/src/styles Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,11 +20,7 @@ const VulnerabilityChip: FC<VulnerabilityChipProps> = ({
2020 const t = useTranslations ( ) ;
2121
2222 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 } >
2824 { count > 0 ? < span className = { styles . chipCount } > { count } </ span > : null }
2925 { t ( `components.eolChip.severity.${ severity } ` ) }
3026 </ Badge >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const VulnerabilityChips: FC<VulnerabilityChipsProps> = ({
2323 ) ;
2424
2525 return (
26- < div className = "vulnerability-chips " >
26+ < div className = "flex flex-row flex-wrap gap-2 max-sm:justify-end " >
2727 { SEVERITY_ORDER . filter ( severity => groupedBySeverity [ severity ] > 0 ) . map (
2828 severity => (
2929 < VulnerabilityChip
Original file line number Diff line number Diff line change @@ -184,15 +184,16 @@ main {
184184 block
185185 border-b
186186 py-2
187- pl-[50 % ]
187+ pl-[33 % ]
188188 text-right
189189 text-neutral-600
190190 before:absolute
191191 before:left-0
192192 before:top-1/2
193- before:w-1/2
193+ before:w-1/3
194194 before:-translate-y-1/2
195195 before:break-words
196+ before:text-left
196197 before:font-medium
197198 before:text-neutral-700
198199 before:content-[attr (data-label)]
You can’t perform that action at this time.
0 commit comments