diff --git a/packages/client/src/tiptap/menus/document-reference/bubble.tsx b/packages/client/src/tiptap/menus/document-reference/bubble.tsx index 4276cce..9d0f5f9 100644 --- a/packages/client/src/tiptap/menus/document-reference/bubble.tsx +++ b/packages/client/src/tiptap/menus/document-reference/bubble.tsx @@ -1,14 +1,17 @@ import { useCallback } from 'react'; import { useRouter } from 'next/router'; -import { Space, Button, List, Popover } from '@douyinfe/semi-ui'; +import { Space, Button, List, Popover, Typography } from '@douyinfe/semi-ui'; import { IconEdit, IconDelete } from '@douyinfe/semi-icons'; import { Tooltip } from 'components/tooltip'; import { DataRender } from 'components/data-render'; +import { IconDocument } from 'components/icons'; import { useWikiTocs } from 'data/wiki'; import { BubbleMenu } from '../../views/bubble-menu'; import { DocumentReference } from '../../extensions/document-reference'; import { Divider } from '../../divider'; +const { Text } = Typography; + export const DocumentReferenceBubbleMenu = ({ editor }) => { const { pathname, query } = useRouter(); const wikiIdFromUrl = query?.wikiId; @@ -41,20 +44,31 @@ export const DocumentReferenceBubbleMenu = ({ editor }) => { > ( ( selectDoc(item)} style={{ cursor: 'pointer' }} - main={{item.title}} + main={ +
+ + + {item.title} + +
+ } /> )} /> @@ -62,6 +76,9 @@ export const DocumentReferenceBubbleMenu = ({ editor }) => { /> } trigger="click" + position="bottomLeft" + showArrow + style={{ padding: 0 }} >