feat: Display subtitle as badge

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 15:26:29 +00:00
parent d6729920c6
commit d47b8237d4

View File

@@ -281,9 +281,11 @@ export function AutocompleteSearch({
{getTypeLabel(item.type)} {getTypeLabel(item.type)}
</Badge> </Badge>
</div> </div>
<div className="text-sm text-muted-foreground/80 truncate leading-relaxed flex-shrink-0"> {item.subtitle && (
{item.subtitle} <Badge variant="secondary" className="text-xs flex-shrink-0 max-w-32 truncate">
</div> {item.subtitle}
</Badge>
)}
</div> </div>
</div> </div>
{(item as SearchResult).rating && (item as SearchResult).rating! > 0.0 && ( {(item as SearchResult).rating && (item as SearchResult).rating! > 0.0 && (