feat(search): widen the clinical read for the in-app search and cover the palette end to end

This commit is contained in:
Marc-André Bombeck committed 2026-10-11 12:59:51 +02:00
1 parent 1b5225ba36
commit a36e414895
5 files changed
+140 -16

No files matched your search

@@ -569,7 +569,7 @@ function RecordSection({
}}
onClick={() => onOpen(hit.path)}
className={cn(
"flex min-h-11 cursor-pointer items-start gap-3 rounded-md px-3 py-2 text-sm",
"group flex min-h-11 cursor-pointer items-start gap-3 rounded-md px-3 py-2 text-sm",
selected && "bg-accent text-accent-foreground",
)}
>
@@ -82,7 +82,9 @@ export function RecordHitContent({ hit }: { hit: SearchHit }) {
{hit.title ? <Marked value={hit.title} /> : label}
</span>
<span className="block truncate text-xs">
<span className="text-muted-foreground">
{/* Muted reads too faint on the highlighted row's accent fill, so
the highlighted option sets it in the accent's own ink. */}
<span className="text-muted-foreground group-aria-selected:text-accent-foreground">
{hit.title ? label : null}
{hit.title && hit.day ? " · " : null}
{hit.day ? fmt.dateShortSmartCalendar(hit.day) : null}