diff options
author | eug-vs <eug-vs@keemail.me> | 2020-10-08 23:42:49 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-10-08 23:45:01 +0300 |
commit | 2f35115f03c8080424ef24302091c5125ff68ff0 (patch) | |
tree | 3c3cdf9a3a424940263458a287892825b71b0d5a | |
parent | 8c8e38f93dba84f67624959540cd2b2042dd5089 (diff) | |
download | which-ui-2f35115f03c8080424ef24302091c5125ff68ff0.tar.gz |
fix: preserve all whitespaces in description
-rw-r--r-- | src/components/PollCard/PollCard.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
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' } })); |