feat: add Poor Performance badge to search page
This commit is contained in:
@@ -40,6 +40,7 @@ interface UnifiedResult {
|
||||
platforms?: { windows: boolean; mac: boolean; linux: boolean } | null
|
||||
controllerSupport?: string | null
|
||||
isRawPerformer?: boolean
|
||||
isPoorPerformance?: boolean
|
||||
bestFps?: number | null
|
||||
latestVersion?: string | null
|
||||
}
|
||||
@@ -256,6 +257,11 @@ function SearchResultCard({
|
||||
⚡ RAW PERFORMER
|
||||
</span>
|
||||
)}
|
||||
{result.isPoorPerformance && (
|
||||
<span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-red-500/10 border border-red-500/20 text-red-400 text-[10px] font-semibold shrink-0">
|
||||
⚠ POOR PERFORMANCE
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{(result.developer || result.publisher) && (
|
||||
<p className="text-[11px] text-text/45 mt-0.5 truncate">
|
||||
|
||||
Reference in New Issue
Block a user