|
@@ -84,15 +84,12 @@ const AgentTools: FC = () => {
|
|
|
</div>
|
|
|
}
|
|
|
>
|
|
|
- <div className='flex items-center flex-wrap justify-between'>
|
|
|
+ <div className='grid gap-1 grid-cols-1 2xl:grid-cols-2 items-center flex-wrap justify-between'>
|
|
|
{tools.map((item: AgentTool & { icon: any; collection?: Collection }, index) => (
|
|
|
<div key={index}
|
|
|
className={cn((item.isDeleted || item.notAuthor) ? 'bg-white/50' : 'bg-white', (item.enabled && !item.isDeleted && !item.notAuthor) && 'shadow-xs', index > 1 && 'mt-1', 'group relative flex justify-between items-center last-of-type:mb-0 pl-2.5 py-2 pr-3 w-full rounded-lg border-[0.5px] border-gray-200 ')}
|
|
|
- style={{
|
|
|
- width: 'calc(50% - 2px)',
|
|
|
- }}
|
|
|
>
|
|
|
- <div className='flex items-center'>
|
|
|
+ <div className='grow w-0 flex items-center'>
|
|
|
{(item.isDeleted || item.notAuthor)
|
|
|
? (
|
|
|
<DefaultToolIcon className='w-6 h-6' />
|
|
@@ -117,12 +114,12 @@ const AgentTools: FC = () => {
|
|
|
))}
|
|
|
<div
|
|
|
title={item.tool_name}
|
|
|
- className={cn((item.isDeleted || item.notAuthor) ? 'line-through opacity-50' : 'group-hover:max-w-[70px]', 'ml-2 max-w-[200px] leading-[18px] text-[13px] font-medium text-gray-800 truncate')}
|
|
|
+ className={cn((item.isDeleted || item.notAuthor) ? 'line-through opacity-50' : '', 'grow w-0 ml-2 leading-[18px] text-[13px] font-medium text-gray-800 truncate')}
|
|
|
>
|
|
|
{item.tool_label || item.tool_name}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div className='flex items-center'>
|
|
|
+ <div className='shrink-0 ml-1 flex items-center'>
|
|
|
{(item.isDeleted || item.notAuthor)
|
|
|
? (
|
|
|
<div className='flex items-center'>
|