diff --git a/client/web/plugins/com.msgbyte.bbcode/src/tags/ImgTag.tsx b/client/web/plugins/com.msgbyte.bbcode/src/tags/ImgTag.tsx index f3826fb3..d7139812 100644 --- a/client/web/plugins/com.msgbyte.bbcode/src/tags/ImgTag.tsx +++ b/client/web/plugins/com.msgbyte.bbcode/src/tags/ImgTag.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { getPopupContainer } from '@capital/common'; import { Image } from '@capital/component'; import type { TagProps } from '../bbcode/type'; @@ -44,14 +45,18 @@ export const ImgTag: React.FC = React.memo((props) => { const url = node.attrs.url ?? text; return ( - +
e.stopPropagation()}> + +
); }); ImgTag.displayName = 'ImgTag'; diff --git a/client/web/src/plugin/common/index.ts b/client/web/src/plugin/common/index.ts index 9e1292c7..02cb3b71 100644 --- a/client/web/src/plugin/common/index.ts +++ b/client/web/src/plugin/common/index.ts @@ -22,6 +22,7 @@ export { export { Loadable } from '@/components/Loadable'; export { useIsMobile } from '@/hooks/useIsMobile'; export { isMobile } from '@/utils/device-helper'; +export { getPopupContainer } from '@/utils/dom-helper'; export { getGlobalState, useGlobalSocketEvent,