mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-16 21:05:20 +02:00
fix: update placeholder and button text for model selection in image and LLM config forms
This commit is contained in:
parent
e37e6d2d18
commit
d9eb080d53
2 changed files with 4 additions and 4 deletions
|
|
@ -612,14 +612,14 @@ export function ImageModelManager({ searchSpaceId }: ImageModelManagerProps) {
|
||||||
role="combobox"
|
role="combobox"
|
||||||
className="w-full justify-between font-normal"
|
className="w-full justify-between font-normal"
|
||||||
>
|
>
|
||||||
{formData.model_name || "Select or type a model..."}
|
{formData.model_name || "Select a model"}
|
||||||
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
||||||
</Button>
|
</Button>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent className="w-full p-0" align="start">
|
<PopoverContent className="w-full p-0" align="start">
|
||||||
<Command>
|
<Command>
|
||||||
<CommandInput
|
<CommandInput
|
||||||
placeholder="Search or type model name..."
|
placeholder="Search a model name"
|
||||||
value={formData.model_name}
|
value={formData.model_name}
|
||||||
onValueChange={(val) => setFormData((p) => ({ ...p, model_name: val }))}
|
onValueChange={(val) => setFormData((p) => ({ ...p, model_name: val }))}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ export function LLMConfigForm({
|
||||||
!field.value && "text-muted-foreground"
|
!field.value && "text-muted-foreground"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{field.value || "Select or type model name"}
|
{field.value || "Select a model"}
|
||||||
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
||||||
</Button>
|
</Button>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
@ -291,7 +291,7 @@ export function LLMConfigForm({
|
||||||
>
|
>
|
||||||
<Command shouldFilter={false} className="bg-transparent">
|
<Command shouldFilter={false} className="bg-transparent">
|
||||||
<CommandInput
|
<CommandInput
|
||||||
placeholder={selectedProvider?.example || "Type model name..."}
|
placeholder={selectedProvider?.example || "Search model name"}
|
||||||
value={field.value}
|
value={field.value}
|
||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue