Remove PerfectScrollbar from content, fixes #21

This commit is contained in:
Piotr Rogowski 2021-03-23 10:01:10 +01:00
parent e4a5ff71da
commit 5d7565ab8e
No known key found for this signature in database
GPG Key ID: F40F61D5587F5673
2 changed files with 5 additions and 12 deletions

View File

@ -5,10 +5,6 @@
@import './themes/common.less';
@import './themes/ant.less';
body {
overflow: hidden;
}
.border-right {
border-right-width: 1px;
border-right-color: @border-color-split;

View File

@ -9,7 +9,6 @@ import {
} from 'react-router-dom';
import { Layout, Result } from 'antd';
import { connect } from 'react-redux';
import PerfectScrollbar from 'react-perfect-scrollbar';
import Dialog from './components/Dialog';
import { loadAll } from './utils/api';
import SideBar, { DialogMatchedPathType } from './components/SideBar';
@ -76,13 +75,11 @@ const App = ({ ui, config }: { ui: UIState, config: ConfigType }) => {
<SideBar matchedPath={dialogMatchedPath} />
<Layout className="app-content">
<Content>
<PerfectScrollbar options={{ suppressScrollX: true }}>
<Dialog
name={dialogMatchedPath.params.dialog}
url={dialogMatchedPath.url}
burnButton={isDesktop && <BurnButton />}
/>
</PerfectScrollbar>
<Dialog
name={dialogMatchedPath.params.dialog}
url={dialogMatchedPath.url}
burnButton={isDesktop && <BurnButton />}
/>
</Content>
</Layout>
</Layout>