fix: fix filename style

This commit is contained in:
fantasticit 2022-03-31 23:08:28 +08:00
parent 1bf7666e83
commit 704be3b435
1 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,9 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => {
<div className={cls(styles.wrap, 'render-wrapper')} onClick={selectFile}> <div className={cls(styles.wrap, 'render-wrapper')} onClick={selectFile}>
<Space> <Space>
{getFileTypeIcon(type)} {getFileTypeIcon(type)}
{fileName}.{fileExt} <Text ellipsis={{ showTooltip: true }} style={{ maxWidth: 320 }}>
{fileName}.{fileExt}
</Text>
<Text type="tertiary"> ({normalizeFileSize(fileSize)})</Text> <Text type="tertiary"> ({normalizeFileSize(fileSize)})</Text>
</Space> </Space>
<span> <span>