mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 13:31:14 -05:00
Refactor search result layout
This commit is contained in:
@@ -274,14 +274,16 @@ export function AutocompleteSearch({
|
||||
) : (
|
||||
<>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<span className="font-semibold text-foreground truncate">{item.title}</span>
|
||||
<Badge variant="outline" className={`text-xs font-medium ${getTypeColor(item.type)}`}>
|
||||
{getTypeLabel(item.type)}
|
||||
</Badge>
|
||||
</div>
|
||||
<div className="text-sm text-muted-foreground/80 truncate mt-0.5 leading-relaxed">
|
||||
{item.subtitle}
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<span className="font-semibold text-foreground truncate">{item.title}</span>
|
||||
<Badge variant="outline" className={`text-xs font-medium ${getTypeColor(item.type)}`}>
|
||||
{getTypeLabel(item.type)}
|
||||
</Badge>
|
||||
</div>
|
||||
<div className="text-sm text-muted-foreground/80 truncate leading-relaxed flex-shrink-0">
|
||||
{item.subtitle}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{(item as SearchResult).rating && (item as SearchResult).rating! > 0 && (
|
||||
|
||||
Reference in New Issue
Block a user