all repos — caroster @ 94a3ea539189797f3e632b4416973d922840c31c

[Octree] Group carpool to your event https://caroster.io

fix: 💄 Cut event names on dashboard
Tim Izzo tim@octree.ch
Mon, 19 Sep 2022 10:12:52 +0000
commit

94a3ea539189797f3e632b4416973d922840c31c

parent

123ddd8569ab8d7686c6a10da890601a4d6b3191

1 files changed, 11 insertions(+), 1 deletions(-)

jump to
M frontend/containers/DashboardEvents/EventCard.tsxfrontend/containers/DashboardEvents/EventCard.tsx

@@ -24,7 +24,12 @@ router.push(`/e/${event.attributes.uuid}`, undefined, {shallow: true})

} > <CardContent> - <Typography gutterBottom variant="h6" component="h3"> + <Typography + gutterBottom + variant="h6" + component="h3" + className={classes.name} + > {event.attributes.name} </Typography> <Typography variant="overline">{t('event.fields.date')}</Typography>

@@ -46,6 +51,11 @@

const useStyles = makeStyles({ clickable: { cursor: 'pointer', + }, + name: { + whiteSpace: 'nowrap', + textOverflow: 'ellipsis', + overflow: 'hidden', }, }); export default EventCard;