diff options
| author | Adam <[email protected]> | 2026-02-03 11:51:21 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-02-03 11:51:30 -0600 |
| commit | 4f7da2b757509d8a7c2f8ad5cc64bb0d38032beb (patch) | |
| tree | d17b61cf709bfbeab09254f05e30bcd33b59fa43 /packages/app/src | |
| parent | 60e616ec8150d100a17df758963eb023b8f50d95 (diff) | |
| download | opencode-4f7da2b757509d8a7c2f8ad5cc64bb0d38032beb.tar.gz opencode-4f7da2b757509d8a7c2f8ad5cc64bb0d38032beb.zip | |
fix(app): model selector truncating too soon
Diffstat (limited to 'packages/app/src')
| -rw-r--r-- | packages/app/src/components/prompt-input.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index ac3c74589..6b568e916 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -1934,13 +1934,13 @@ export const PromptInput: Component<PromptInputProps> = (props) => { <Button as="div" variant="ghost" - class="px-2 min-w-0 max-w-[140px]" + class="px-2 min-w-0 max-w-[240px]" onClick={() => dialog.show(() => <DialogSelectModelUnpaid />)} > <Show when={local.model.current()?.provider?.id}> <ProviderIcon id={local.model.current()!.provider.id as IconName} class="size-4 shrink-0" /> </Show> - <span class="truncate max-w-[100px]"> + <span class="truncate"> {local.model.current()?.name ?? language.t("dialog.model.select.title")} </span> <Icon name="chevron-down" size="small" class="shrink-0" /> @@ -1956,12 +1956,12 @@ export const PromptInput: Component<PromptInputProps> = (props) => { > <ModelSelectorPopover triggerAs={Button} - triggerProps={{ variant: "ghost", class: "min-w-0 max-w-[140px]" }} + triggerProps={{ variant: "ghost", class: "min-w-0 max-w-[240px]" }} > <Show when={local.model.current()?.provider?.id}> <ProviderIcon id={local.model.current()!.provider.id as IconName} class="size-4 shrink-0" /> </Show> - <span class="truncate max-w-[100px]"> + <span class="truncate"> {local.model.current()?.name ?? language.t("dialog.model.select.title")} </span> <Icon name="chevron-down" size="small" class="shrink-0" /> |
