From 0ff60d83eb91af8717a954e7d5ed5f9d3141120d Mon Sep 17 00:00:00 2001 From: Mrxbox98 <29240392+mrxbox98@users.noreply.github.com> Date: Sat, 5 Feb 2022 09:08:11 -0800 Subject: [PATCH] Fix incorrect alignment on 2FA boxes due to incorrect TW breakpoints (#3914) --- .../dashboard/AccountOverviewContainer.tsx | 28 ++++++++++--------- resources/scripts/theme.ts | 6 ++-- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/resources/scripts/components/dashboard/AccountOverviewContainer.tsx b/resources/scripts/components/dashboard/AccountOverviewContainer.tsx index 6826955fb..646f7690e 100644 --- a/resources/scripts/components/dashboard/AccountOverviewContainer.tsx +++ b/resources/scripts/components/dashboard/AccountOverviewContainer.tsx @@ -11,19 +11,19 @@ import MessageBox from '@/components/MessageBox'; import { useLocation } from 'react-router-dom'; const Container = styled.div` - ${tw`flex flex-wrap`}; + ${tw`flex flex-wrap`}; - & > div { - ${tw`w-full`}; + & > div { + ${tw`w-full`}; - ${breakpoint('md')` - width: calc(50% - 1rem); - `} + ${breakpoint('sm')` + width: calc(50% - 1rem); + `} - ${breakpoint('xl')` - ${tw`w-auto flex-1`}; - `} - } + ${breakpoint('md')` + ${tw`w-auto flex-1`}; + `} + } `; export default () => { @@ -36,21 +36,23 @@ export default () => { Your account must have two-factor authentication enabled in order to continue. } - + + - + + ); }; diff --git a/resources/scripts/theme.ts b/resources/scripts/theme.ts index 9dd0b467d..8679ebaa7 100644 --- a/resources/scripts/theme.ts +++ b/resources/scripts/theme.ts @@ -3,8 +3,8 @@ import { BreakpointFunction, createBreakpoint } from 'styled-components-breakpoi type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; export const breakpoint: BreakpointFunction = createBreakpoint({ xs: 0, - sm: 576, + sm: 640, md: 768, - lg: 992, - xl: 1200, + lg: 1024, + xl: 1280, });