fix(app): show either the variant or the budget on a model row, never both (#64423)

This commit is contained in:
Aarav Sareen
2026-11-17 17:56:09 +05:30
committed by GitHub
Unverified
parent a9a35b4b4c
commit 887f6cd44b
@@ -1025,8 +1025,8 @@ export function DialogSelectModel(props: { provider?: string; model?: ModelState
<Badge class="shrink-0">{language.t("model.tag.latest")}</Badge>
</Show>
</span>
{/* The row's flyout leads with the budget instead, while it shows. */}
<Show when={flyoutId() !== row.model.id && usage(item())}>
{/* The active row shows its variant instead; its flyout leads with the budget. */}
<Show when={!active() && usage(item())}>
{(value) => (
<span data-slot="model-dialog-variant">
<ModelUsageTag usage={value()} />