docs: fix overflow issue (#3191)

This commit is contained in:
Mohit kumar Bajoria 2020-02-04 14:30:21 +05:30 committed by GitHub
parent 68dd3c1de7
commit a4a721591f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,11 @@ import { css } from '@emotion/core';
import Page from './page';
import { mq } from '../utils';
import styled from '@emotion/styled';
const Children = styled.div`
overflow: auto;
`;
const SidebarLayout = ({ sidebar, children }) => (
<Page
@ -15,7 +20,7 @@ const SidebarLayout = ({ sidebar, children }) => (
`}
>
<div>{sidebar}</div>
<div>{children}</div>
<Children>{children}</Children>
</Page>
);