From 0829e66645a267b08d29f6c487de79776966be74 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 19 Nov 2024 18:51:01 -0500 Subject: [PATCH] Truncate detail column after 100 characters --- app/routes/events-team_.outstanding.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/routes/events-team_.outstanding.tsx b/app/routes/events-team_.outstanding.tsx index 87bafc3..886fb1b 100644 --- a/app/routes/events-team_.outstanding.tsx +++ b/app/routes/events-team_.outstanding.tsx @@ -276,7 +276,11 @@ export default function () { {events.map((event) => ( {event.day} - {event.details} + + {(event.details as string).length > 100 + ? `${(event.details as string).substring(0, 97)}...` + : event.details} + {getStatus(event)}