From 1ce340c1c57f9d4e247f31b7269122091f37ed18 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 26 Mar 2022 15:39:50 -0500 Subject: [PATCH] Make polls look mostly okay --- app/soapbox/components/poll.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/soapbox/components/poll.js b/app/soapbox/components/poll.js index ee31d25c0..22e06beb0 100644 --- a/app/soapbox/components/poll.js +++ b/app/soapbox/components/poll.js @@ -9,6 +9,7 @@ import spring from 'react-motion/lib/spring'; import { openModal } from 'soapbox/actions/modals'; import { vote, fetchPoll } from 'soapbox/actions/polls'; import Icon from 'soapbox/components/icon'; +import { Text } from 'soapbox/components/ui'; import Motion from 'soapbox/features/ui/util/optional_motion'; import SoapboxPropTypes from 'soapbox/utils/soapbox_prop_types'; @@ -106,7 +107,7 @@ class Poll extends ImmutablePureComponent { {showResults && ( {({ width }) => - + } )} @@ -163,9 +164,15 @@ class Poll extends ImmutablePureComponent {
{!showResults && } - {showResults && !this.props.disabled && · } - - {poll.get('expires_at') && · {timeRemaining}} + + {showResults && !this.props.disabled && ( + · + )} + + {poll.get('expires_at') && · {timeRemaining}} +
);