Skip to content

Commit 6fcf1cf

Browse files
committed
fix(webapp): only the warning headline icon sits lower
1 parent d6e1b4e commit 6fcf1cf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/webapp/app/components/dashboard-agent/report-sparkline.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ export function ReportHeadline({
140140
}) {
141141
return (
142142
<p className="flex items-start gap-2 text-sm">
143-
<ReportSeverityIcon severity={severity} tone={tone} className="mt-1.5 shrink-0" />
143+
<ReportSeverityIcon
144+
severity={severity}
145+
tone={tone}
146+
className={cn("shrink-0", (tone ?? severity) === "warn" ? "mt-1" : "mt-0.5")}
147+
/>
144148
<span>
145149
<span className={cn("font-medium", SEVERITY_TEXT[tone ?? severity])}>{phrase}</span>
146150
{continuation ? <span className="text-text-bright">{continuation}</span> : null}

0 commit comments

Comments
 (0)