diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx index 1146639a..c4bda294 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Citation/index.jsx @@ -119,21 +119,19 @@ function CitationDetailModal({ source, onClose }) { className="bg-transparent outline-none fixed top-0 left-0 w-full h-full flex items-center justify-center z-10" >
-
-
-

- {truncate(title, 52)} -

- {references > 1 && ( -

- Referenced {references} times. -

- )} -
+
+

+ {truncate(title, 45)} +

+ {references > 1 && ( +

+ Referenced {references} times. +

+ )} @@ -159,6 +157,7 @@ function CitationDetailModal({ source, onClose }) { ); } + function truncateMiddle(title) { if (title.length <= 18) return title;