Commit 13a1cacf authored by afc163's avatar afc163

Improve reponsive

parent ebb3a09e
import React from 'react';
import { Link } from 'dva/router';
import PageHeader from '../components/PageHeader';
import styles from './PageHeaderLayout.less';
export default ({ children, wrapperClassName, top, ...restProps }) => (
<div style={{ margin: '-24px -24px 0' }} className={wrapperClassName}>
{top}
<PageHeader {...restProps} linkElement={Link} />
{children ? <div style={{ margin: '24px 24px 0' }}>{children}</div> : null}
{children ? <div className={styles.content}>{children}</div> : null}
</div>
);
@import "~antd/lib/style/themes/default.less";
.content {
margin: 24px 24px 0;
}
@media screen and (max-width: @screen-sm) {
.content {
margin: 24px 0 0;
}
}
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