Skip to content

Commit

Permalink
Address rwd qa test issues (#4661)
Browse files Browse the repository at this point in the history
* fix My vote column in the proposal list

* fix qa-issues

* lint fix

* fix ProposalList ColLayout

* Update packages/ui/src/proposals/constants/styles.ts

Co-authored-by: Theophile Sandoz <[email protected]>

---------

Co-authored-by: Theophile Sandoz <[email protected]>
  • Loading branch information
eshark9312 and thesan authored Dec 4, 2023
1 parent 192f6f3 commit 04252e3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,14 @@ const CandidateCardStakeAndControls = styled.div`
align-items: flex-end;
width: fit-content;
column-gap: 32px;
row-gap: 8px;
margin-top: auto;
flex-wrap: wrap;
@media (min-width: 1440px) {
flex-wrap: nowrap;
min-width: fit-content;
}
`

const CandidateCardStatistics = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const StakeStep = ({ candidacyMember, minStake, errorChecker, errorMessag
name="staking.account"
minBalance={minStake}
lockType="Council Candidate"
variant={isMobile ? 's' : size === 'md' ? 'm' : 'l'}
variant={size === 'lg' ? 'l' : 's'}
/>
</InputComponent>
<RowGapBlock gap={8}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,6 @@ const AboutInvite = styled.div`
display: flex;
justify-content: space-between;
width: 100%;
align-items: center;
gap: 8px;
`
1 change: 1 addition & 0 deletions packages/ui/src/memberships/components/MembersSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,5 @@ const MembershipsGroup = styled.div`
const MembershipsHeaders = styled(ListHeaders)`
grid-area: accountstablenav;
grid-column-gap: 16px;
padding: 0 24px;
`
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ProposalList = ({ proposals, getSortProps, isPast, isLoading }: Pro

return (
<RowGapBlock gap={4}>
<ProposalsListHeaders $colLayout={ProposalColLayout}>
<ProposalsListHeaders $colLayout={ProposalColLayout(isCouncilMember, isPast)}>
{getSortProps ? <SortHeader {...getSortProps('title')}>Title</SortHeader> : <ProposalListHeader />}
<ProposalListHeader>Stage</ProposalListHeader>
<ProposalListHeader>Proposer</ProposalListHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const ProposalListItem = ({ proposal, isPast, memberId, isCouncilMember }
<ProposalItem
as={GhostRouterLink}
to={generatePath(ProposalsRoutes.preview, { id: proposal.id })}
$colLayout={ProposalColLayout}
$colLayout={ProposalColLayout(isCouncilMember, isPast)}
$isPast={!isProposalActive(proposal.status)}
>
<FieldWrapper>
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/proposals/constants/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import styled from 'styled-components'

import { ListHeaders, ListHeader } from '@/common/components/List/ListHeader'

export const ProposalColLayout = '296px 148px 156px 60px 1fr'
export const ProposalColLayout = (isCouncilMember?: boolean, isPast?: boolean) =>
`296px 148px 156px${isPast ? ' 60px' : isCouncilMember ? ' 80px' : ''}`

export const ProposalsListHeaders = styled(ListHeaders)`
padding-right: 16px;
Expand Down

2 comments on commit 04252e3

@vercel
Copy link

@vercel vercel bot commented on 04252e3 Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 04252e3 Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2-git-dev-joystream.vercel.app
pioneer-2.vercel.app
pioneer-2-joystream.vercel.app

Please sign in to comment.