fix: Fixed the issue of error reporting when uploading files in the chat box #2897 (#2898)

### What problem does this PR solve?

fix: Fixed the issue of error reporting when uploading files in the chat
box #2897

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
This commit is contained in:
balibabu
2024-10-18 17:21:12 +08:00
committed by GitHub
parent c760f058df
commit 526fcbbfde
6 changed files with 37 additions and 70 deletions

View File

@ -43,3 +43,8 @@
}
}
}
.fileThumbnail {
display: inline-block;
max-width: 40px;
}

View File

@ -118,7 +118,11 @@ const MarkdownContent = ({
{documentId && (
<Flex gap={'small'}>
{fileThumbnail ? (
<img src={fileThumbnail} alt="" />
<img
src={fileThumbnail}
alt=""
className={styles.fileThumbnail}
/>
) : (
<SvgIcon
name={`file-icon/${fileExtension}`}