mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
feat: remove model icon
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user