Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Truncate detail column after 100 characters
  • Loading branch information
regalijan committed Nov 19, 2024
1 parent 31af6fa commit 0829e66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/routes/events-team_.outstanding.tsx
Expand Up @@ -276,7 +276,11 @@ export default function () {
{events.map((event) => (
<Tr>
<Td>{event.day}</Td>
<Td>{event.details}</Td>
<Td>
{(event.details as string).length > 100
? `${(event.details as string).substring(0, 97)}...`
: event.details}
</Td>
<Td>{getStatus(event)}</Td>
<Td>
<Button
Expand Down

0 comments on commit 0829e66

Please sign in to comment.