fix: fix filename style

pull/24/head
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}>
<Space>
{getFileTypeIcon(type)}
{fileName}.{fileExt}
<Text ellipsis={{ showTooltip: true }} style={{ maxWidth: 320 }}>
{fileName}.{fileExt}
</Text>
<Text type="tertiary"> ({normalizeFileSize(fileSize)})</Text>
</Space>
<span>