@@ -550,31 +550,31 @@ const Diagnostics: FC<DiagnosticsProps> = ({ diagnostics }) => {
550
550
{ diagnostics . map ( ( diagnostic , index ) => (
551
551
< div
552
552
key = { `diagnostic-${ diagnostic . summary } -${ index } ` }
553
- className = { `text-xs flex flex-col rounded-md border px-4 pb-3 border-solid
553
+ className = { `text-xs font-semibold flex flex-col rounded-md border px-3.5 py-3.5 border-solid
554
554
${
555
555
diagnostic . severity === "error"
556
- ? " text-content-destructive border-border-destructive"
557
- : " text-content-warning border-border-warning"
556
+ ? "text-content-primary border-border-destructive bg-content-destructive/15 "
557
+ : "text-content-primary border-border-warning bg-content-warning/15 "
558
558
} `}
559
559
>
560
- < div className = "flex items-center m-0 " >
560
+ < div className = "flex flex-row items-start " >
561
561
{ diagnostic . severity === "error" && (
562
562
< CircleAlert
563
- className = "me-2 -mt-0.5 inline-flex opacity-80"
564
- size = { 16 }
563
+ className = "me-2 inline-flex shrink-0 text-content-destructive size-icon-sm"
565
564
aria-hidden = "true"
566
565
/>
567
566
) }
568
567
{ diagnostic . severity === "warning" && (
569
568
< TriangleAlert
570
- className = "me-2 -mt-0.5 inline-flex opacity-80"
571
- size = { 16 }
569
+ className = "me-2 inline-flex shrink-0 text-content-warning size-icon-sm"
572
570
aria-hidden = "true"
573
571
/>
574
572
) }
575
- < p className = "font-medium" > { diagnostic . summary } </ p >
573
+ < div className = "flex flex-col gap-3" >
574
+ < p className = "m-0" > { diagnostic . summary } </ p >
575
+ { diagnostic . detail && < p className = "m-0" > { diagnostic . detail } </ p > }
576
+ </ div >
576
577
</ div >
577
- { diagnostic . detail && < p className = "m-0 pb-0" > { diagnostic . detail } </ p > }
578
578
</ div >
579
579
) ) }
580
580
</ div >
0 commit comments