diff --git a/web/src/components/floating-chat-widget-markdown.tsx b/web/src/components/floating-chat-widget-markdown.tsx
index 51912d72af..dc22b5292b 100644
--- a/web/src/components/floating-chat-widget-markdown.tsx
+++ b/web/src/components/floating-chat-widget-markdown.tsx
@@ -1,6 +1,7 @@
import Image from '@/components/image';
import SvgIcon from '@/components/svg-icon';
+import { MarkdownRemarkPlugins } from '@/constants/markdown-remark-plugins';
import {
useFetchDocumentThumbnailsByIds,
useGetDocumentUrl,
@@ -36,12 +37,11 @@ import {
} from 'react-syntax-highlighter/dist/esm/styles/prism';
import rehypeKatex from 'rehype-katex';
import rehypeRaw from 'rehype-raw';
-import { MarkdownRemarkPlugins } from '@/constants/markdown-remark-plugins';
import { visitParents } from 'unist-util-visit-parents';
import styles from './floating-chat-widget-markdown.module.less';
import { useIsDarkTheme } from './theme-provider';
import { Button } from './ui/button';
-import { Popover, PopoverContent, PopoverTrigger } from './ui/popover';
+import { HoverCard, HoverCardContent, HoverCardTrigger } from './ui/hover-card';
import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip';
const getChunkIndex = (match: string) =>
@@ -66,7 +66,11 @@ const FloatingChatWidgetMarkdown = ({
const contentWithCursor = useMemo(() => {
const text = content === '' ? t('chat.searching') : content;
const nextText = replaceTextByOldReg(text);
- return pipe(replaceThinkToSection, replaceRetrievingToSection, preprocessLaTeX)(nextText);
+ return pipe(
+ replaceThinkToSection,
+ replaceRetrievingToSection,
+ preprocessLaTeX,
+ )(nextText);
}, [content, t]);
useEffect(() => {
@@ -168,7 +172,7 @@ const FloatingChatWidgetMarkdown = ({
className="flex gap-2 widget-citation-content"
>
{imageId && (
-