diff --git a/src/components/Layout/Sider.js b/src/components/Layout/Sider.js index 177c428..6b07234 100644 --- a/src/components/Layout/Sider.js +++ b/src/components/Layout/Sider.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' -import { Icon, Switch, Layout, Drawer } from 'antd' +import { Icon, Switch, Layout } from 'antd' import { withI18n, Trans } from '@lingui/react' import { config } from 'utils' import SiderMenu from './Menu' diff --git a/src/layouts/PrimaryLayout.js b/src/layouts/PrimaryLayout.js index df51fe4..365913a 100644 --- a/src/layouts/PrimaryLayout.js +++ b/src/layouts/PrimaryLayout.js @@ -108,10 +108,7 @@ class PrimaryLayout extends PureComponent { ) : ( )} - +
@@ -122,7 +119,7 @@ class PrimaryLayout extends PureComponent { target={() => document.getElementById('primaryLayout')} /> - +
) diff --git a/src/layouts/PrimaryLayout.less b/src/layouts/PrimaryLayout.less index bd157d6..b28bbf6 100644 --- a/src/layouts/PrimaryLayout.less +++ b/src/layouts/PrimaryLayout.less @@ -16,3 +16,16 @@ .content { padding: 24px; } + +.container { + height: 100vh; + overflow-x: hidden; + overflow-y: scroll; + flex: 1; +} + +:global { + .antd-pro-global-footer-globalFooter { + margin-top: 16px; + } +}