From b621b51799172a1867fce8d033ef9fb744c22582 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 13 Feb 2024 01:57:29 -0800 Subject: [PATCH] only show first 500 chars of abstract in search results --- src/app/search/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index 3445007..97e76f1 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -50,7 +50,7 @@ const SearchResult = ({

Abstract

- {abstract} + {abstract.substring(0, 500) + (abstract.length > 500 ? '...' : '')}

)