Skip to content

Commit 19e481c

Browse files
committed
feat(v3-uplift): governance badge & vote-bar spacing
Add a 1rem gap under the proposal state badge (ProposalsV3List). VoteBar: separate the label/value row from the bar - 1rem on mobile, 0.25rem on desktop.
1 parent 8b7ce96 commit 19e481c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/governance/ProposalsV3List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const ProposalListItemRow = ({ proposal }: { proposal: ProposalListItem }) => {
4747
justifyContent: 'space-between',
4848
}}
4949
>
50-
<Stack direction="row" gap={3} alignItems="center">
50+
<Stack direction="row" gap={3} alignItems="center" sx={{ mb: '1rem' }}>
5151
<StateBadge state={proposal.badgeState} loading={false} />
5252
</Stack>
5353
<Typography variant="h3" sx={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>

src/modules/governance/VoteBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface VoteBarProps extends BoxProps {
4040
export function VoteBar({ percent, yae, votes, loading, compact, ...rest }: VoteBarProps) {
4141
return (
4242
<Box {...rest}>
43-
<Box sx={{ display: 'flex' }}>
43+
<Box sx={{ display: 'flex', mb: { xs: '1rem', lg: '0.25rem' } }}>
4444
<Typography variant="description" sx={{ mr: 2 }}>
4545
{yae ? <Trans>YAE</Trans> : <Trans>NAY</Trans>}
4646
</Typography>

0 commit comments

Comments
 (0)