From 1ccf72e8f05d2f2e17f862f208cae1ace55232e3 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Wed, 11 Dec 2024 09:20:50 -0800 Subject: [PATCH] fully clickable --- web/src/components/search/DocumentDisplay.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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}

)}