diff --git a/frontend/src/pages/settings/settings-provider.tsx b/frontend/src/pages/settings/settings-provider.tsx index 25d56b22..0cc0d6a4 100644 --- a/frontend/src/pages/settings/settings-provider.tsx +++ b/frontend/src/pages/settings/settings-provider.tsx @@ -57,6 +57,7 @@ import { import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'; import { FormSubmitButton } from '@/components/ui/form-submit-button'; import { Input } from '@/components/ui/input'; +import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from '@/components/ui/input-group'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@/components/ui/resizable'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; @@ -438,10 +439,8 @@ function FormModelComboboxItem({ onOpenChange={setIsOpen} open={isOpen} > -
- {/* Input field - main control */} - + { const { value } = event.target; @@ -455,87 +454,85 @@ function FormModelComboboxItem({ placeholder={placeholder} value={displayValue} /> - {/* Dropdown trigger button */} - - - - - - - - -
-

- No {label.toLowerCase()} found. -

- {search && allowCustom && ( - - )} -
-
- - {filteredOptions.map((option) => ( - { - field.onChange(option.name); - onOptionSelect?.(option); + + + + + + + + + + + + + +
+

No {label.toLowerCase()} found.

+ {search && allowCustom && ( +
+
+ + {filteredOptions.map((option) => ( + { + field.onChange(option.name); + onOptionSelect?.(option); + setIsOpen(false); + setSearch(''); + }} + value={option.name} + > +
+
+ {option.name} + {option.thinking && ( + )} - /> - - ))} - - - - -
+
+ + {formatPrice(option.price)} + +
+ + + ))} + + + + {description && {description}}