Fix incorrect alignment on 2FA boxes due to incorrect TW breakpoints (#3914)
This commit is contained in:
parent
5c229d60e3
commit
0ff60d83eb
2 changed files with 18 additions and 16 deletions
|
@ -16,11 +16,11 @@ const Container = styled.div`
|
||||||
& > div {
|
& > div {
|
||||||
${tw`w-full`};
|
${tw`w-full`};
|
||||||
|
|
||||||
${breakpoint('md')`
|
${breakpoint('sm')`
|
||||||
width: calc(50% - 1rem);
|
width: calc(50% - 1rem);
|
||||||
`}
|
`}
|
||||||
|
|
||||||
${breakpoint('xl')`
|
${breakpoint('md')`
|
||||||
${tw`w-auto flex-1`};
|
${tw`w-auto flex-1`};
|
||||||
`}
|
`}
|
||||||
}
|
}
|
||||||
|
@ -36,21 +36,23 @@ export default () => {
|
||||||
Your account must have two-factor authentication enabled in order to continue.
|
Your account must have two-factor authentication enabled in order to continue.
|
||||||
</MessageBox>
|
</MessageBox>
|
||||||
}
|
}
|
||||||
<Container css={[ tw`mb-10`, state?.twoFactorRedirect ? tw`mt-4` : tw`mt-10` ]}>
|
|
||||||
|
<Container css={[ tw`lg:grid lg:grid-cols-3 mb-10`, state?.twoFactorRedirect ? tw`mt-4` : tw`mt-10` ]}>
|
||||||
<ContentBox title={'Update Password'} showFlashes={'account:password'}>
|
<ContentBox title={'Update Password'} showFlashes={'account:password'}>
|
||||||
<UpdatePasswordForm/>
|
<UpdatePasswordForm/>
|
||||||
</ContentBox>
|
</ContentBox>
|
||||||
<ContentBox
|
<ContentBox
|
||||||
css={tw`mt-8 md:mt-0 md:ml-8`}
|
css={tw`mt-8 sm:mt-0 sm:ml-8`}
|
||||||
title={'Update Email Address'}
|
title={'Update Email Address'}
|
||||||
showFlashes={'account:email'}
|
showFlashes={'account:email'}
|
||||||
>
|
>
|
||||||
<UpdateEmailAddressForm/>
|
<UpdateEmailAddressForm/>
|
||||||
</ContentBox>
|
</ContentBox>
|
||||||
<ContentBox css={tw`lg:ml-8 mt-8 lg:mt-0`} title={'Configure Two Factor'}>
|
<ContentBox css={tw`md:ml-8 mt-8 md:mt-0`} title={'Configure Two Factor'}>
|
||||||
<ConfigureTwoFactorForm/>
|
<ConfigureTwoFactorForm/>
|
||||||
</ContentBox>
|
</ContentBox>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
</PageContentBlock>
|
</PageContentBlock>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,8 +3,8 @@ import { BreakpointFunction, createBreakpoint } from 'styled-components-breakpoi
|
||||||
type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
||||||
export const breakpoint: BreakpointFunction<Breakpoints> = createBreakpoint<Breakpoints>({
|
export const breakpoint: BreakpointFunction<Breakpoints> = createBreakpoint<Breakpoints>({
|
||||||
xs: 0,
|
xs: 0,
|
||||||
sm: 576,
|
sm: 640,
|
||||||
md: 768,
|
md: 768,
|
||||||
lg: 992,
|
lg: 1024,
|
||||||
xl: 1200,
|
xl: 1280,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue