From 1ac600e2fd9024604d98c525957cd2fbfdf9a779 Mon Sep 17 00:00:00 2001 From: ilyayudovin Date: Fri, 12 Jun 2020 18:29:51 +0300 Subject: feat: take user info from database --- src/PollCard/PollCard.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/PollCard/PollCard.tsx') diff --git a/src/PollCard/PollCard.tsx b/src/PollCard/PollCard.tsx index 588714a..2a51840 100644 --- a/src/PollCard/PollCard.tsx +++ b/src/PollCard/PollCard.tsx @@ -71,9 +71,7 @@ const PollCard: React.FC = ({ poll }) => { - {author.name[0].toUpperCase()} - + )} title={author.name} /> -- cgit v1.2.3 From 8bee1a3fc948f292b23e9024cb89600e08757240 Mon Sep 17 00:00:00 2001 From: ilyayudovin Date: Fri, 12 Jun 2020 19:34:57 +0300 Subject: fix: add text shadow for percentage --- src/PollCard/PollCard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/PollCard/PollCard.tsx') diff --git a/src/PollCard/PollCard.tsx b/src/PollCard/PollCard.tsx index 2a51840..b639f25 100644 --- a/src/PollCard/PollCard.tsx +++ b/src/PollCard/PollCard.tsx @@ -35,7 +35,8 @@ const useStyles = makeStyles(theme => ({ position: 'absolute', color: 'white', top: '86%', - fontSize: 20 + fontSize: 20, + textShadow: '0 0 3px black' }, percentageLeft: { left: 30 @@ -71,7 +72,7 @@ const PollCard: React.FC = ({ poll }) => { + )} title={author.name} /> -- cgit v1.2.3