Pad snippet rows under search result titles (PAP-3468)

Bumps `SnippetLine` top margin to `mt-2.5` (from `mt-1`), the leading
icon to `h-3.5 w-3.5` (from `h-3 w-3`), and switches the wrapped
excerpt to `leading-relaxed` so the description / comment / document
lines under each title get the breathing room asked for in review.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Opus 4.7 committed 2026-05-05 11:22:33 -05:00
1 parent 5a37d7245d
commit 691e512873
1 file changed
+3 -3
+3 -3
View File
@@ -198,19 +198,19 @@ function SnippetLine({ text, highlights, field, fallbackLabel, multiline = false
return (
<div
className={cn(
"mt-1 flex min-w-0 gap-1.5 text-xs text-muted-foreground",
"mt-2.5 flex min-w-0 gap-1.5 text-xs text-muted-foreground",
multiline ? "items-start" : "items-center",
)}
>
<Icon
className={cn("h-3 w-3 shrink-0 text-muted-foreground/60", multiline && "mt-0.5")}
className={cn("h-3.5 w-3.5 shrink-0 text-muted-foreground/60", multiline && "mt-0.5")}
aria-hidden
/>
<span className="sr-only">{label}: </span>
<HighlightedText
text={text}
highlights={highlights}
className={multiline ? "line-clamp-2 leading-snug" : "line-clamp-1 truncate"}
className={multiline ? "line-clamp-2 leading-relaxed" : "line-clamp-1 truncate"}
/>
</div>
);