From 86a0796c859bbb0bd735fdc3bdc67d1687ddaf1c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 8 Oct 2020 22:43:30 +0300 Subject: feat: tweak description paddings --- src/components/PollCard/PollCard.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index d909b79..eb025f2 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; -import { Card, CardActionArea } from '@material-ui/core/'; +import { Card, CardActionArea, Typography } from '@material-ui/core/'; import { Which, Poll } from 'which-types'; import { useSnackbar } from 'notistack'; @@ -44,8 +44,7 @@ const useStyles = makeStyles(theme => ({ transitionDuration: '0.5s' }, description: { - padding: '0px 16px 10px', - overflowWrap: 'break-word' + padding: theme.spacing(0.5, 2) } })); @@ -97,7 +96,11 @@ const PollCard: React.FC = React.memo(({ poll, setPoll }) => { return ( - {poll.description &&
{poll.description}
} + {poll.description && ( + + {poll.description} + + )}
-- cgit v1.2.3