mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
update default layout
This commit is contained in:
parent
2e5dffa538
commit
ec878e7327
@ -4,23 +4,33 @@ import { Layout } from "antd"
|
||||
|
||||
import { Sidebar, Drawer, Sidedrawer, Modal } from "components/Layout"
|
||||
|
||||
import BackgroundDecorator from "components/BackgroundDecorator"
|
||||
|
||||
export default (props) => {
|
||||
return <>
|
||||
<div className="app_background_decorator" />
|
||||
<BackgroundDecorator />
|
||||
|
||||
<Layout className="app_layout" style={{ height: "100%" }}>
|
||||
<Modal />
|
||||
<Drawer />
|
||||
<Sidebar user={props.user} />
|
||||
<Sidebar />
|
||||
<Sidedrawer />
|
||||
<Layout.Content className={
|
||||
classnames(
|
||||
<Layout.Content
|
||||
className={classnames(
|
||||
"content_layout",
|
||||
...props.contentClassnames ?? [],
|
||||
{
|
||||
["floating-sidebar"]: window.app?.settings.get("sidebar.floating")
|
||||
["floating-sidebar"]: window.app?.cores.settings.get("sidebar.floating")
|
||||
}
|
||||
)}>
|
||||
<div id="transitionLayer" className="fade-transverse-active">
|
||||
)}
|
||||
>
|
||||
<div
|
||||
id="transitionLayer"
|
||||
className={classnames(
|
||||
"page_layout",
|
||||
"fade-transverse-active",
|
||||
)}
|
||||
>
|
||||
{React.cloneElement(props.children, props)}
|
||||
</div>
|
||||
</Layout.Content>
|
||||
|
Loading…
x
Reference in New Issue
Block a user