Skip to content

Commit

Permalink
Fix for Mobile View
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed Jul 6, 2024
1 parent 40cf3d1 commit ef0e9fa
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions src/modules/explorer/pages/ProposalDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,38 @@ export const ProposalDetails: React.FC = () => {
</Grid>
</Grid>
)}
<Grid item xs={isMobileSmall ? 12 : 3}>
<Grid container justifyContent="flex-end" style={{ gap: 28 }}>
{isMobileSmall ? null : (
<Grid item xs={3}>
<Grid container justifyContent="flex-end" style={{ gap: 28 }}>
<Grid item>
<VoteButton
variant="contained"
favor={true}
onClick={() => onClickVote(true)}
disabled={!canVote}
>
<ThumbUpIcon style={{ marginRight: 8 }} />
For
</VoteButton>
</Grid>
<Grid item>
<VoteButton
variant="contained"
favor={false}
onClick={() => onClickVote(false)}
disabled={!canVote}
>
<ThumbDownIcon style={{ marginRight: 8 }} />
Against
</VoteButton>
</Grid>
</Grid>
</Grid>
)}
</Grid>
{isMobileSmall ? (
<Grid item xs={12} spacing={3}>
<Grid container justifyContent="center" style={{ gap: 28, margin: "4px 0px" }} spacing={3}>
<Grid item>
<VoteButton
variant="contained"
Expand All @@ -423,7 +453,7 @@ export const ProposalDetails: React.FC = () => {
</Grid>
</Grid>
</Grid>
</Grid>
) : null}
</Grid>
</Grid>
</Grid>
Expand Down

0 comments on commit ef0e9fa

Please sign in to comment.