docs: fix overflow issue (#3191)
This commit is contained in:
parent
68dd3c1de7
commit
a4a721591f
@ -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>
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user