Browse Source

fix: file download in chat (#11322)

tags/0.13.1
zxhlyh 11 months ago
parent
commit
98a1b01b0c
No account linked to committer's email address

+ 1
- 1
web/app/components/base/file-uploader/file-uploader-in-chat-input/file-image-item.tsx View File

@@ -84,7 +84,7 @@ const FileImageItem = ({
className='absolute bottom-0.5 right-0.5 flex items-center justify-center w-6 h-6 rounded-lg bg-components-actionbar-bg shadow-md'
onClick={(e) => {
e.stopPropagation()
downloadFile(url || '', name)
downloadFile(url || base64Url || '', name)
}}
>
<RiDownloadLine className='w-4 h-4 text-text-tertiary' />

+ 1
- 1
web/app/components/base/file-uploader/file-uploader-in-chat-input/file-item.tsx View File

@@ -80,7 +80,7 @@ const FileItem = ({
}
</div>
{
showDownloadAction && (
showDownloadAction && url && (
<ActionButton
size='m'
className='hidden group-hover/file-item:flex absolute -right-1 -top-1'

Loading…
Cancel
Save