fix: update document name display to prevent overflow

This commit is contained in:
AkaraChen 2024-12-12 16:50:15 +08:00
parent 1b150d31a9
commit 489015bd9e

View File

@ -54,7 +54,7 @@ const PreviewDocumentPicker: FC<Props> = ({
<FileIcon name={name} extension={extension} size='md' />
<div className='flex flex-col items-start ml-1'>
<div className='flex items-center space-x-0.5'>
<span className={cn('system-md-semibold truncate')}> {name || '--'}</span>
<span className={cn('system-md-semibold max-w-[200px] overflow-clip')}> {name || '--'}</span>
<ArrowIcon className={'h-[18px] w-[18px] text-text-primary'} />
</div>
</div>