Skip to content

Commit

Permalink
feat: 修复link水和问题
Browse files Browse the repository at this point in the history
  • Loading branch information
coderz-w committed Nov 9, 2024
1 parent 467d6fb commit c7710ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/float-popover/FloatPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ const RealFloatPopover = function FloatPopover<T extends {}>(props: FloatPopover
ref: refs.setReference,
})
) : (
<div
<span
role={trigger === 'both' || trigger === 'click' ? 'button' : 'note'}
className={cn('inline-block', wrapperClassNames)}
ref={refs.setReference}
{...listener}
>
{Child}
</div>
</span>
);

useEffect(() => {
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/markdown/renderbers/Mlink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type { FC, ReactNode } from 'react';
import { memo, useCallback } from 'react';

import { FloatPopover } from '@/components/ui/float-popover';

export const MLink: FC<{
href: string;
title?: string;
Expand Down

0 comments on commit c7710ba

Please sign in to comment.