diff --git a/web/src/components/chat_search/sources/SourceCard.tsx b/web/src/components/chat_search/sources/SourceCard.tsx index cc4437b6c81..1c888228a83 100644 --- a/web/src/components/chat_search/sources/SourceCard.tsx +++ b/web/src/components/chat_search/sources/SourceCard.tsx @@ -57,29 +57,27 @@ export function SeeMoreBlock({ onClick={toggleDocumentSelection} className={` ${documentSelectionToggled ? "border-border-100 border" : ""} - cursor-pointer w-[150px] rounded-sm flex-none transition-all duration-500 hover:bg-background-125 bg-text-100 px-3 py-2.5 + cursor-pointer rounded-sm flex-none transition-all duration-500 hover:bg-background-125 bg-text-100 px-3 py-2.5 `} > -
-

+

+

{documentSelectionToggled ? "Hide sources" : "See context"}

-
- {uniqueSources.map((sourceType, ind) => ( -
-
- -
+
+ {uniqueSources.slice(0, 3).map((sourceType, ind) => ( +
+
))} + {uniqueSources.length > 3 && ( + + +{uniqueSources.length - 3} + + )}
-
-
+
See more