Skip to content

Commit

Permalink
Prevent the voting card to get larger than the viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Apr 28, 2019
1 parent 327abd6 commit a8ca811
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/voting/app/src/components/VotingCard/VotingCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ const VotingCard = React.memo(
const action = isVoteAction(vote)

return (
<Main>
<section
css={`
display: flex;
flex-direction: column;
min-width: 0;
`}
>
<Header>
{open ? (
<Countdown end={endDate} />
Expand Down Expand Up @@ -96,7 +102,7 @@ const VotingCard = React.memo(
</Button>
</div>
</Card>
</Main>
</section>
)
},
(prevProps, nextProps) => {
Expand Down Expand Up @@ -140,11 +146,6 @@ const OptionLabel = ({ label, isConnectedAccount }) => (
</span>
)

const Main = styled.section`
display: flex;
flex-direction: column;
`

const Header = styled.div`
display: flex;
justify-content: space-between;
Expand Down

0 comments on commit a8ca811

Please sign in to comment.