God please forgive me for the sin I have just committed

This commit is contained in:
Matthew Penner 2021-01-01 16:26:48 -07:00
parent 88ac1ce1fd
commit f72402b5fa

View file

@ -20,7 +20,7 @@ import NestsContainer from '@/components/admin/nests/NestsContainer';
import MountsContainer from '@/components/admin/mounts/MountsContainer'; import MountsContainer from '@/components/admin/mounts/MountsContainer';
const Sidebar = styled.div<{ collapsed?: boolean }>` const Sidebar = styled.div<{ collapsed?: boolean }>`
${tw`h-screen flex flex-col items-center flex-shrink-0 bg-neutral-900 overflow-x-hidden transition-all duration-250 ease-linear`}; ${tw`fixed h-screen flex flex-col items-center flex-shrink-0 bg-neutral-900 overflow-x-hidden transition-all duration-250 ease-linear`};
${props => props.collapsed ? 'width: 70px' : 'width: 287px'}; ${props => props.collapsed ? 'width: 70px' : 'width: 287px'};
& > div.header { & > div.header {
@ -164,8 +164,8 @@ const AdminRouter = ({ location, match }: RouteComponentProps) => {
</div> </div>
</Sidebar> </Sidebar>
<div css={tw`h-full w-full flex flex-col items-center`}> <div css={tw`w-full flex flex-col items-center transition-all duration-250 ease-linear`} style={{ paddingLeft: collapsed ? '70px' : '287px' }}>
<div css={tw`min-h-screen w-full flex flex-col overflow-x-hidden`} style={{ maxWidth: '86rem' }}> <div css={tw`min-h-screen w-full flex flex-col px-16 py-12`} style={{ maxWidth: '86rem' }}>
{/* <TransitionRouter> */} {/* <TransitionRouter> */}
<Switch location={location}> <Switch location={location}>
<Route path={`${match.path}`} component={OverviewContainer} exact/> <Route path={`${match.path}`} component={OverviewContainer} exact/>