mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 18:19:05 +02:00
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:
1 parent
5a37d7245d
commit
691e512873
1 file changed
+3
-3
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user