fix: context icon in chat (#5604)

This commit is contained in:
zxhlyh
2024-06-26 10:40:38 +08:00
committed by GitHub
parent 964f0e1400
commit af6e3869ff
5 changed files with 90 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import { formatNumber } from '@/utils/format'
import FileIcon from '@/app/components/base/file-icon'
import { Settings01 } from '@/app/components/base/icons/src/vender/line/general'
import { Folder } from '@/app/components/base/icons/src/vender/solid/files'
import { Globe06 } from '@/app/components/base/icons/src/vender/solid/mapsAndTravel'
import Drawer from '@/app/components/base/drawer'
import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
@@ -54,6 +55,13 @@ const Item: FC<ItemProps> = ({
</div>
)
}
{
config.data_source_type === DataSourceType.WEB && (
<div className='shrink-0 flex items-center justify-center mr-2 w-6 h-6 bg-[#F5FAFF] border-[0.5px] border-blue-100 rounded-md'>
<Globe06 className='w-4 h-4 text-blue-600' />
</div>
)
}
<div className='grow'>
<div className='flex items-center h-[18px]'>
<div className='grow text-[13px] font-medium text-gray-800 truncate' title={config.name}>{config.name}</div>