studio: show 'downloaded' badge instead of 'recommended' when variant is cached

This commit is contained in:
Daniel Han 2026-03-15 07:27:15 +00:00
commit 7b65073311

View file

@ -301,16 +301,15 @@ function GgufVariantExpander({
>
<span className="min-w-0 flex-1 truncate font-mono text-xs">
{v.quant}
{v.quant === effectiveRecommended && (
<span className="ml-1.5 text-[9px] font-sans font-medium text-primary/70">
recommended
</span>
)}
{v.downloaded && (
{v.downloaded ? (
<span className="ml-1.5 text-[9px] font-sans font-medium text-green-400">
downloaded
</span>
)}
) : v.quant === effectiveRecommended ? (
<span className="ml-1.5 text-[9px] font-sans font-medium text-primary/70">
recommended
</span>
) : null}
</span>
<span className="flex items-center gap-1.5 shrink-0">
{oom && (