Skip to content

Commit

Permalink
feat: tweak layout style
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng committed Aug 6, 2019
1 parent 8ff5ba3 commit 401f2cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions view/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reliable-view",
"version": "1.0.6",
"version": "1.0.8",
"description": "view layer for Reliable",
"files": [
"public/*.js",
Expand Down Expand Up @@ -35,7 +35,7 @@
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"@babel/runtime": "^7.0.0",
"antd": "^3.6.1",
"antd": "^3.21.1",
"autoprefixer": "^9.1.0",
"awesome-clipboard": "^2.0.2",
"babel-loader": "^8.0.0",
Expand Down
4 changes: 3 additions & 1 deletion view/src/components/ReliableLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default class ReliableLayout extends React.Component {

render () {
return (
<Layout>
<Layout
style={{ minHeight: '100%' }}
>
{ !this.props.hideMenu && <SiderBar collapsed={this.state.collapsed} /> }
<Layout>
<Header
Expand Down
1 change: 0 additions & 1 deletion view/src/components/SiderBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default class SiderBar extends React.Component {
trigger={null}
collapsible
width="200px"
style={{ minHeight: '100%' }}
collapsed={this.props.collapsed}
>
<div className="logo">
Expand Down

0 comments on commit 401f2cc

Please sign in to comment.