Truncate detail column after 100 characters
This commit is contained in:
parent
31af6fa3ec
commit
0829e66645
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user