feat: remove model icon

This commit is contained in:
Henry Li
2026-01-18 09:55:17 +08:00
parent fa07e9e903
commit 449f04fc44
3 changed files with 8 additions and 9 deletions

View File

@@ -188,8 +188,8 @@ export const ModelSelectorLogoGroup = ({
}: ModelSelectorLogoGroupProps) => (
<div
className={cn(
"-space-x-1 flex shrink-0 items-center [&>img]:rounded-full [&>img]:bg-background [&>img]:p-px [&>img]:ring-1 dark:[&>img]:bg-foreground",
className
"[&>img]:bg-background dark:[&>img]:bg-foreground flex shrink-0 items-center -space-x-1 [&>img]:rounded-full [&>img]:p-px [&>img]:ring-1",
className,
)}
{...props}
/>
@@ -201,5 +201,8 @@ export const ModelSelectorName = ({
className,
...props
}: ModelSelectorNameProps) => (
<span className={cn("flex-1 truncate text-left", className)} {...props} />
<span
className={cn("flex-1 truncate text-left text-xs", className)}
{...props}
/>
);

View File

@@ -962,13 +962,10 @@ export const PromptInputButton = ({
size,
...props
}: PromptInputButtonProps) => {
const newSize =
size ?? (Children.count(props.children) > 1 ? "sm" : "icon-sm");
return (
<InputGroupButton
className={cn(className)}
size={newSize}
size="sm"
type="button"
variant={variant}
{...props}

View File

@@ -144,8 +144,7 @@ export function InputBox({
>
<ModelSelectorTrigger asChild>
<PromptInputButton>
<BoxIcon className="size-4" />
<ModelSelectorName className="font-light">
<ModelSelectorName className="text-xs font-normal">
{selectedModel?.displayName}
</ModelSelectorName>
</PromptInputButton>