fix model icon size in llm node

This commit is contained in:
Yi 2024-12-31 15:13:56 +08:00
parent 870779534f
commit 5bba422c0b
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ const ModelIcon: FC<ModelIconProps> = ({
return (
<div className={cn(
'flex items-center justify-center w-6 h-6 rounded-md border-[0.5px] border-components-panel-border-subtle bg-background-default-subtle',
'flex items-center justify-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-background-default-subtle',
className,
)}>
<div className='flex w-5 h5 items-center justify-center opacity-35'>

View File

@ -34,7 +34,7 @@ const ModelTrigger: FC<ModelTriggerProps> = ({
return (
<div
className={cn(
'group flex items-center p-1 gap-0.5 h-8 rounded-lg bg-components-input-bg-normal',
'group flex items-center p-1 gap-0.5 h-6 rounded-lg bg-components-input-bg-normal',
!readonly && 'hover:bg-components-input-bg-hover cursor-pointer',
open && 'bg-components-input-bg-hover',
model.status !== ModelStatusEnum.active && 'bg-components-input-bg-disabled hover:bg-components-input-bg-disabled',
@ -42,7 +42,7 @@ const ModelTrigger: FC<ModelTriggerProps> = ({
)}
>
<ModelIcon
className='shrink-0 m-1'
className='w-4 h-4'
provider={provider}
modelName={model.model}
/>