Skip to content

Commit

Permalink
#Fix responsive for CrowdloanContribution
Browse files Browse the repository at this point in the history
  • Loading branch information
dominhquang committed Oct 19, 2023
1 parent 7d4f7c1 commit 24c0cd4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ const CheckCrowdloanContributions = styled(Component)<Props>(({ theme: { token }

'.__form-buttons': {
display: 'flex',
flexWrap: 'wrap',
gap: token.size
},

Expand Down Expand Up @@ -478,6 +479,14 @@ const CheckCrowdloanContributions = styled(Component)<Props>(({ theme: { token }
paddingTop: token.size,
paddingBottom: token.size
}
},

'@media (max-width: 767px)': {
'.__form-buttons': {
'.ant-btn': {
minWidth: '100%'
}
}
}
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ const Component: React.FC<Props> = ({ className = '' }: Props) => {
dataIndex: 'name',
key: 'name',
render: (_: any, row: TableItem) => {
const [, text2] = getUnlockTexts(row.paraState);
const [text1, text2] = getUnlockTexts(row.paraState);

return <div className='project-container'>
<Logo
Expand All @@ -329,7 +329,7 @@ const Component: React.FC<Props> = ({ className = '' }: Props) => {
</div>

{isWebUI && (<div className={'project-parachain'}>{`${row.relayChainName} ${t('parachain')}`}</div>)}
{!isWebUI && (<div className={'fund-unlock-detail-line-2-for-mobile'}>{`${text2} ${row.unlockTime}`}</div>)}
{!isWebUI && (<div className={'fund-unlock-detail-line-2-for-mobile'}>{`${text1} ${text2.toLowerCase()} ${row.unlockTime}`}</div>)}

</div>
</div>;
Expand Down Expand Up @@ -543,6 +543,7 @@ const Component: React.FC<Props> = ({ className = '' }: Props) => {
onBack={onBack}
// rightButtons={headerIcons}
showBackButton
paddingVertical
title={t('Your contributions')}
/>
)
Expand Down Expand Up @@ -825,7 +826,11 @@ const CrowdloanContributionsResult = styled(Component)<Props>(({ theme: { token
'.fund-unlock-detail-line-2-for-mobile': {
fontSize: token.fontSizeSM,
lineHeight: token.lineHeightSM,
color: token.colorTextLight4
color: token.colorTextLight4,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
maxWidth: 156,
},

'.address-input-icon': {
Expand Down Expand Up @@ -966,7 +971,7 @@ const CrowdloanContributionsResult = styled(Component)<Props>(({ theme: { token
},

'.__form-area': {
marginTop: token.margin,
marginTop: token.marginXS,
marginBottom: token.margin
},

Expand Down

0 comments on commit 24c0cd4

Please sign in to comment.