Skip to content

Commit c7710ba

Browse files
committed
feat: 修复link水和问题
1 parent 467d6fb commit c7710ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/ui/float-popover/FloatPopover.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ const RealFloatPopover = function FloatPopover<T extends {}>(props: FloatPopover
192192
ref: refs.setReference,
193193
})
194194
) : (
195-
<div
195+
<span
196196
role={trigger === 'both' || trigger === 'click' ? 'button' : 'note'}
197197
className={cn('inline-block', wrapperClassNames)}
198198
ref={refs.setReference}
199199
{...listener}
200200
>
201201
{Child}
202-
</div>
202+
</span>
203203
);
204204

205205
useEffect(() => {

src/components/ui/markdown/renderbers/Mlink.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { FC, ReactNode } from 'react';
55
import { memo, useCallback } from 'react';
66

77
import { FloatPopover } from '@/components/ui/float-popover';
8-
98
export const MLink: FC<{
109
href: string;
1110
title?: string;

0 commit comments

Comments
 (0)