mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-22 05:34:45 +08:00
feat: remove model icon
This commit is contained in:
@@ -188,8 +188,8 @@ export const ModelSelectorLogoGroup = ({
|
|||||||
}: ModelSelectorLogoGroupProps) => (
|
}: ModelSelectorLogoGroupProps) => (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
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",
|
"[&>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
|
className,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
@@ -201,5 +201,8 @@ export const ModelSelectorName = ({
|
|||||||
className,
|
className,
|
||||||
...props
|
...props
|
||||||
}: ModelSelectorNameProps) => (
|
}: 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,
|
size,
|
||||||
...props
|
...props
|
||||||
}: PromptInputButtonProps) => {
|
}: PromptInputButtonProps) => {
|
||||||
const newSize =
|
|
||||||
size ?? (Children.count(props.children) > 1 ? "sm" : "icon-sm");
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<InputGroupButton
|
<InputGroupButton
|
||||||
className={cn(className)}
|
className={cn(className)}
|
||||||
size={newSize}
|
size="sm"
|
||||||
type="button"
|
type="button"
|
||||||
variant={variant}
|
variant={variant}
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
@@ -144,8 +144,7 @@ export function InputBox({
|
|||||||
>
|
>
|
||||||
<ModelSelectorTrigger asChild>
|
<ModelSelectorTrigger asChild>
|
||||||
<PromptInputButton>
|
<PromptInputButton>
|
||||||
<BoxIcon className="size-4" />
|
<ModelSelectorName className="text-xs font-normal">
|
||||||
<ModelSelectorName className="font-light">
|
|
||||||
{selectedModel?.displayName}
|
{selectedModel?.displayName}
|
||||||
</ModelSelectorName>
|
</ModelSelectorName>
|
||||||
</PromptInputButton>
|
</PromptInputButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user