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

Commit

Permalink
Fix scrolling (#208)
Browse files Browse the repository at this point in the history
* Improve real-estate

* Fix z-index for content container

* Fix styling /w @Lucretius help

* Fix right border with overflow enabled

* Reduce right margin
  • Loading branch information
djenriquez authored Oct 3, 2017
1 parent 03bc1b8 commit b44abe0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
38 changes: 20 additions & 18 deletions app/components/App/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,24 +273,26 @@ export default class App extends React.Component {
</Tabs>
</div>
);
return <div>
<Snackbar
className={styles.snackbar}
bodyStyle={this.state.snackbarStyle}
open={this.state.snackbarMessage != ''}
message={this.state.snackbarMessage}
autoHideDuration={3000}
onRequestClose={() => this.setState({ snackbarMessage: '' })}
onActionTouchTap={() => this.setState({ snackbarMessage: '' })}
/>
{this.state.logoutOpen && this.renderSessionExpDialog()}
<Header tokenIdentity={this.state.identity} />
<Menu pathname={this.props.location.pathname} />
<div id={styles.content}>
<Paper zDepth={1}>
{this.props.children || welcome}
</Paper>
return (
<div>
<Snackbar
className={styles.snackbar}
bodyStyle={this.state.snackbarStyle}
open={this.state.snackbarMessage != ''}
message={this.state.snackbarMessage}
autoHideDuration={3000}
onRequestClose={() => this.setState({ snackbarMessage: '' })}
onActionTouchTap={() => this.setState({ snackbarMessage: '' })}
/>
{this.state.logoutOpen && this.renderSessionExpDialog()}
<Header tokenIdentity={this.state.identity} />
<Menu pathname={this.props.location.pathname} />
<div id={styles.content}>
<Paper zDepth={1} style={{ 'border-right-style': 'inset' }}>
{this.props.children || welcome}
</Paper>
</div>
</div>
</div>
)
}
}
6 changes: 4 additions & 2 deletions app/components/App/app.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#content {
padding-left: 30px;
width: calc(100vw - 275px);
display: inline-block;
width: calc(100vw - 270px);
margin-left: 235px;
margin-top: 70px;
height: calc(100% - 70px);
overflow-y: scroll;
position: fixed;
}

.snackbar {
Expand Down

0 comments on commit b44abe0

Please sign in to comment.