fix(webui): share control layout for preset alignment
This commit is contained in:
1 parent
55ff1d8d1f
commit
763ae9c2ae
7 files changed
+49
-18
No files matched your search
@@ -3,7 +3,6 @@ import {
|
||||
Bot,
|
||||
Brain,
|
||||
Check,
|
||||
ChevronDown,
|
||||
CircleAlert,
|
||||
Cloud,
|
||||
Cpu,
|
||||
@@ -26,6 +25,7 @@ import {
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { ControlChevron } from "@/components/ui/control-chevron";
|
||||
import { ComboboxOption, useComboboxNavigation } from "@/components/ui/combobox";
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
||||
import { Input } from "@/components/ui/input";
|
||||
@@ -126,7 +126,7 @@ export function ProviderPicker({
|
||||
type="button"
|
||||
disabled={disabled}
|
||||
className={cn(
|
||||
"h-9 w-full justify-between rounded-full border-input bg-background px-3 text-[13px] font-normal shadow-none",
|
||||
"w-full justify-between rounded-full border-input bg-background text-[13px] font-normal shadow-none",
|
||||
"settings-hover focus-visible:ring-2 focus-visible:ring-ring",
|
||||
disabled && "text-muted-foreground",
|
||||
)}
|
||||
@@ -364,8 +364,9 @@ export function ModelIdPicker({
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
size="control"
|
||||
className={cn(
|
||||
"h-9 w-full justify-between rounded-full border-input bg-background px-3 text-[13px] font-normal shadow-none",
|
||||
"w-full justify-between rounded-full border-input bg-background text-[13px] font-normal shadow-none",
|
||||
"settings-hover focus-visible:ring-2 focus-visible:ring-ring",
|
||||
)}
|
||||
>
|
||||
@@ -384,7 +385,7 @@ export function ModelIdPicker({
|
||||
{value || emptyLabel || tx("settings.models.selectModel", "Select model")}
|
||||
</span>
|
||||
</span>
|
||||
<ChevronDown className="ml-2 h-3.5 w-3.5 shrink-0 text-muted-foreground" aria-hidden />
|
||||
<ControlChevron />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent
|
||||
|
||||
Reference in new issue
Block a user