mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
better responsive page layout
This commit is contained in:
parent
517720895d
commit
27b3cdab05
@ -32,7 +32,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 320px) and (max-width: 940px) {
|
||||
@media only screen and (min-width: 320px) and (max-width: 1024px) {
|
||||
#list,
|
||||
#search-box {
|
||||
display: none;
|
||||
|
@ -194,7 +194,7 @@ export default class MainContent extends React.Component {
|
||||
return (
|
||||
<div className="main-wrapper">
|
||||
<Row>
|
||||
<Col lg={4} md={6} sm={24} xs={24}>
|
||||
<Col lg={5} md={6} sm={24} xs={24}>
|
||||
<Menu className="aside-container" mode="inline"
|
||||
openKeys={this.state.openKeys}
|
||||
selectedKeys={[activeMenuItem]}
|
||||
@ -203,7 +203,7 @@ export default class MainContent extends React.Component {
|
||||
{menuItems}
|
||||
</Menu>
|
||||
</Col>
|
||||
<Col lg={20} md={18} sm={24} xs={24} className="main-container">
|
||||
<Col lg={19} md={18} sm={24} xs={24} className="main-container">
|
||||
{
|
||||
props.demos ?
|
||||
<ComponentDoc {...props} doc={localizedPageData} demos={props.demos} /> :
|
||||
|
@ -20,7 +20,7 @@ export default class Header extends React.Component {
|
||||
componentDidMount() {
|
||||
/* eslint-disable global-require */
|
||||
require('enquire.js')
|
||||
.register('only screen and (min-width: 320px) and (max-width: 940px)', {
|
||||
.register('only screen and (min-width: 320px) and (max-width: 1024px)', {
|
||||
match: () => {
|
||||
this.setState({ menuMode: 'inline' });
|
||||
},
|
||||
@ -137,7 +137,7 @@ export default class Header extends React.Component {
|
||||
<span>Ant Design</span>
|
||||
</Link>
|
||||
</Col>
|
||||
<Col lg={20} md={18} sm={17} xs={0} style={{ display: 'block' }}>
|
||||
<Col lg={20} md={18} sm={0} xs={0}>
|
||||
<div id="search-box">
|
||||
<Select
|
||||
combobox
|
||||
|
Loading…
Reference in New Issue
Block a user