Fixed no wrap

This commit is contained in:
Ceferino Patino 2022-08-11 22:12:54 -05:00
commit 8688af33f6

View file

@ -26,13 +26,16 @@ export default function ListAnswer({
<Grid item xs={10}> <Grid item xs={10}>
<CreationInfoTag {...{ createdAt, creator }} text='answered' /> <CreationInfoTag {...{ createdAt, creator }} text='answered' />
<Typography <Typography
noWrap
variant='body1' variant='body1'
component={Link} component={Link}
to={`/questions/${question_id}`} to={`/questions/${question_id}`}
style={{ textDecoration: 'none', color: 'inherit' }} style={{ textDecoration: 'none', color: 'inherit' }}
> >
{text.replace(/<[^>]*>?/gm, '')} {text
.replace(/<[^>]*>?/gm, '')
.split(' ')
.slice(0, 30)
.join(' ') + '...'}
</Typography> </Typography>
</Grid> </Grid>
</Grid> </Grid>