moved backgroundDecorator to layout

This commit is contained in:
srgooglo 2022-09-07 15:17:53 +02:00
parent d2e3c6008f
commit 90b126db68
2 changed files with 14 additions and 12 deletions

View File

@ -413,7 +413,6 @@ class App extends React.Component {
<title>{config.app.siteName}</title> <title>{config.app.siteName}</title>
</Helmet> </Helmet>
<antd.ConfigProvider> <antd.ConfigProvider>
<div className="backgroundDecorator" />
<Router.InternalRouter> <Router.InternalRouter>
<Layout <Layout
user={this.state.user} user={this.state.user}

View File

@ -5,16 +5,19 @@ import * as antd from "antd"
import { Sidebar, Drawer, Sidedrawer } from "components/layout" import { Sidebar, Drawer, Sidedrawer } from "components/layout"
export default (props) => { export default (props) => {
return <antd.Layout className="app_layout" style={{ height: "100%" }}> return <>
<Drawer /> <div className="backgroundDecorator" />
<Sidebar user={props.user} /> <antd.Layout className="app_layout" style={{ height: "100%" }}>
<Sidedrawer /> <Drawer />
<antd.Layout className="content_layout"> <Sidebar user={props.user} />
<antd.Layout.Content className={classnames("layout_page", ...props.layoutPageModesClassnames ?? [])}> <Sidedrawer />
<div id="transitionLayer" className="fade-transverse-active"> <antd.Layout className="content_layout">
{React.cloneElement(props.children, props)} <antd.Layout.Content className={classnames("layout_page", ...props.layoutPageModesClassnames ?? [])}>
</div> <div id="transitionLayer" className="fade-transverse-active">
</antd.Layout.Content> {React.cloneElement(props.children, props)}
</div>
</antd.Layout.Content>
</antd.Layout>
</antd.Layout> </antd.Layout>
</antd.Layout> </>
} }