Commit 8cd0e90d authored by Chunchi Che's avatar Chunchi Che

fix canvas appending

parent 767a414a
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"height": 800 "height": 800
}, },
"sider": { "sider": {
"width": 400 "width": 300
}, },
"footer": { "footer": {
"height": 80 "height": 80
......
...@@ -17,6 +17,7 @@ const contentStyle: React.CSSProperties = { ...@@ -17,6 +17,7 @@ const contentStyle: React.CSSProperties = {
minHeight: 120, minHeight: 120,
height: layoutConfig.content.height, height: layoutConfig.content.height,
lineHeight: "120px", lineHeight: "120px",
paddingLeft: `${layoutConfig.sider.width}px`,
}; };
const siderStyle: React.CSSProperties = { const siderStyle: React.CSSProperties = {
...@@ -41,7 +42,7 @@ const NeosLayout = (props: { ...@@ -41,7 +42,7 @@ const NeosLayout = (props: {
footer: React.ReactNode; footer: React.ReactNode;
}) => { }) => {
return ( return (
<Layout> <Layout hasSider>
<Sider style={siderStyle} width={layoutConfig.sider.width}> <Sider style={siderStyle} width={layoutConfig.sider.width}>
{props.sider} {props.sider}
</Sider> </Sider>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment