mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 00:03:13 +03:00
fix(app): show either the variant or the budget on a model row, never both (#64423)
This commit is contained in:
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()} />
|
||||
|
||||
Reference in New Issue
Block a user