mirror of https://github.com/fantasticit/think.git
tiptap: fix tooltip style
This commit is contained in:
parent
ae9961ec45
commit
758f376a16
|
@ -73,7 +73,12 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => {
|
||||||
<div>
|
<div>
|
||||||
<Space>
|
<Space>
|
||||||
{getFileTypeIcon(fileType)}
|
{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}
|
{fileName}.{fileExt}
|
||||||
<Text type="tertiary">({normalizeFileSize(fileSize)})</Text>
|
<Text type="tertiary">({normalizeFileSize(fileSize)})</Text>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
Loading…
Reference in New Issue