Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

Commit

Permalink
Hack to fix scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
sbardian committed Apr 23, 2018
1 parent 49e0ab7 commit a0dce30
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/client/components/Login.js
Expand Up @@ -52,6 +52,10 @@ class Login extends Component {
this.userLogin = this.userLogin.bind(this);
}

componentDidMount() {
document.body.style.overflowY = 'hidden';
}

// User login
userLogin(e) {
const { email, password } = this.state;
Expand Down
2 changes: 1 addition & 1 deletion src/client/containers/DashboardContainer.js
Expand Up @@ -65,7 +65,7 @@ class DashboardContainer extends Component {
}

componentDidMount() {
console.log('this.props = ', this.props);
document.body.style.overflowY = 'auto';
if (
!(
this.props.location &&
Expand Down
9 changes: 9 additions & 0 deletions src/client/styles/login.css
@@ -0,0 +1,9 @@
html {
height: 100%;
}
body {
background: #000;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#81d4fa));
background: -moz-linear-gradient(top, rgba(#fff) 0%, #81d4fa 100%);
overflow: hidden;
}
2 changes: 1 addition & 1 deletion src/client/styles/rain.css
Expand Up @@ -5,7 +5,7 @@ body {
background: #000;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#81d4fa));
background: -moz-linear-gradient(top, rgba(#fff) 0%, #81d4fa 100%);
overflow: auto;
overflow: hidden;
}

.drop {
Expand Down

0 comments on commit a0dce30

Please sign in to comment.