Commit a0a2bcd8 authored by 2breakegg's avatar 2breakegg

水平对齐

parent 11972cb6
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
"js-yaml": "^3.8.1", "js-yaml": "^3.8.1",
"react": "^15.4.2", "react": "^15.4.2",
"react-dom": "^15.4.2", "react-dom": "^15.4.2",
"react-intl": "^2.2.3" "react-intl": "^2.2.3",
"react-router": "^3.0.2"
}, },
"scripts": { "scripts": {
"start": "node scripts/start.js", "start": "node scripts/start.js",
......
...@@ -50,12 +50,23 @@ ...@@ -50,12 +50,23 @@
.App-CardList .ant-row > div { .App-CardList .ant-row > div {
padding: 1vh 1vw; padding: 1vh 1vw;
} }
.App-CardList .ant-btn{
position:absolute;
bottom:20px;
}
.App-Card-content { .App-Card-content {
margin-bottom: 2vh; margin-bottom: 2vh;
white-space: pre; white-space: pre;
} }
.ant-card-bordered{
height:100%;
}
.ant-col-12{
padding:10px;
}
.ant-card-body{
padding-bottom: 50px;
}
.ant-layout .ant-layout-header { .ant-layout .ant-layout-header {
background: #404040 background: #404040
} }
......
...@@ -161,7 +161,7 @@ export default class App extends Component { ...@@ -161,7 +161,7 @@ export default class App extends Component {
<div className="App-CardList"> <div className="App-CardList">
{!isMobile ? {!isMobile ?
(<div> (<div>
<Row> <Row type="flex">
<Col span="12"> <Col span="12">
<Card title={<FormattedMessage id={"CardTitle1"} />} > <Card title={<FormattedMessage id={"CardTitle1"} />} >
<p className="App-Card-content"> <p className="App-Card-content">
...@@ -183,7 +183,7 @@ export default class App extends Component { ...@@ -183,7 +183,7 @@ export default class App extends Component {
</Col> </Col>
</Row> </Row>
<Row> <Row type="flex">
<Col span="12"> <Col span="12">
<Card title={<FormattedMessage id={"CardTitle4"} />} > <Card title={<FormattedMessage id={"CardTitle4"} />} >
<p className="App-Card-content"> <p className="App-Card-content">
......
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