Skip to content

Commit c746449

Browse files
committed
fix: align end
1 parent d9f70ff commit c746449

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

apps/site/components/EOL/VulnerabilityChips/VulnerabilityChip/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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>

apps/site/components/EOL/VulnerabilityChips/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

packages/ui-components/src/styles/markdown.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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)]

0 commit comments

Comments
 (0)