From 2f35115f03c8080424ef24302091c5125ff68ff0 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 8 Oct 2020 23:42:49 +0300 Subject: fix: preserve all whitespaces in description --- src/components/PollCard/PollCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index 6886534..a06bad8 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -44,7 +44,9 @@ const useStyles = makeStyles(theme => ({ transitionDuration: '0.5s' }, description: { - padding: theme.spacing(1, 2) + padding: theme.spacing(1, 2), + wordWrap: 'break-word', + whiteSpace: 'pre-wrap' } })); -- cgit v1.2.3