mirror of https://github.com/fantasticit/think.git
tiptap: fix tooltip style
parent
ae9961ec45
commit
758f376a16
|
@ -73,7 +73,12 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => {
|
|||
<div>
|
||||
<Space>
|
||||
{getFileTypeIcon(fileType)}
|
||||
<Text style={{ marginLeft: 8 }} ellipsis={{ showTooltip: true }}>
|
||||
<Text
|
||||
style={{ marginLeft: 8 }}
|
||||
ellipsis={{
|
||||
showTooltip: { opts: { content: `${fileName}.${fileExt}`, style: { wordBreak: 'break-all' } } },
|
||||
}}
|
||||
>
|
||||
{fileName}.{fileExt}
|
||||
<Text type="tertiary">({normalizeFileSize(fileSize)})</Text>
|
||||
</Text>
|
||||
|
|
Loading…
Reference in New Issue