made selector full width and made default disappear
This commit is contained in:
parent
c8968bbb2e
commit
df1324ac36
1 changed files with 3 additions and 3 deletions
|
|
@ -64,12 +64,12 @@ export function ModelSelector({
|
||||||
{icon && <div className="w-4 h-4">{icon}</div>}
|
{icon && <div className="w-4 h-4">{icon}</div>}
|
||||||
{options.find((framework) => framework.value === value)?.label ||
|
{options.find((framework) => framework.value === value)?.label ||
|
||||||
value}
|
value}
|
||||||
{options.find((framework) => framework.value === value)
|
{/* {options.find((framework) => framework.value === value)
|
||||||
?.default && (
|
?.default && (
|
||||||
<span className="text-xs text-foreground p-1 rounded-md bg-muted">
|
<span className="text-xs text-foreground p-1 rounded-md bg-muted">
|
||||||
Default
|
Default
|
||||||
</span>
|
</span>
|
||||||
)}
|
)} */}
|
||||||
{custom &&
|
{custom &&
|
||||||
value &&
|
value &&
|
||||||
!options.find((framework) => framework.value === value) && (
|
!options.find((framework) => framework.value === value) && (
|
||||||
|
|
@ -86,7 +86,7 @@ export function ModelSelector({
|
||||||
<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
||||||
</Button>
|
</Button>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent align="start" className="w-[400px] p-0">
|
<PopoverContent align="start" className=" p-0 w-[var(--radix-popover-trigger-width)]">
|
||||||
<Command>
|
<Command>
|
||||||
<CommandInput
|
<CommandInput
|
||||||
placeholder={searchPlaceholder}
|
placeholder={searchPlaceholder}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue