diff --git a/web/src/components/search/DocumentDisplay.tsx b/web/src/components/search/DocumentDisplay.tsx index b7edb8d6d71..17867e1edde 100644 --- a/web/src/components/search/DocumentDisplay.tsx +++ b/web/src/components/search/DocumentDisplay.tsx @@ -434,24 +434,24 @@ export function CompactDocumentCard({ updatePresentingDocument: (documentIndex: LoadedDanswerDocument) => void; }) { return ( -
-
{ - if (document.source_type === ValidSources.File) { - updatePresentingDocument(document); - } else if (document.link) { - window.open(document.link, "_blank"); - } - }} - className="cursor-pointer text-sm font-semibold flex items-center gap-x-1 text-text-900 pt-0 mt-0 truncate w-full" - > +
{ + if (document.source_type === ValidSources.File) { + updatePresentingDocument(document); + } else if (document.link) { + window.open(document.link, "_blank"); + } + }} + className="max-w-[250px] cursor-pointer pb-0 pt-0 mt-0 flex gap-y-0 flex-col content-start items-start gap-0 " + > +
{icon} {(document.semantic_identifier || document.document_id).slice(0, 40)} {(document.semantic_identifier || document.document_id).length > 40 && "..."}
{document.blurb && ( -

+

{document.blurb}

)}