Fix multiline text content in squeak thread item component (#144)

This commit is contained in:
Jonathan Zernik 2020-07-25 20:25:14 -07:00 committed by GitHub
parent 9764cc5208
commit 48158803a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,11 @@ export default function SqueakThreadItem({
alignItems="flex-start"
>
<Grid item>
<Typography size="md">{squeak.getContentStr()}</Typography>
<Typography
size="md"
style={{whiteSpace: 'pre-line', overflow: "hidden", textOverflow: "ellipsis", height: '6rem'}}
>{squeak.getContentStr()}
</Typography>
</Grid>
</Grid>
<Grid