0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 13:32:39 +00:00

Styled the page info

This commit is contained in:
Scott Tolksdorf
2016-05-09 10:57:23 -04:00
parent 30e6bb28ad
commit 1bd85e80ee
3 changed files with 16 additions and 11 deletions

View File

@@ -30,8 +30,6 @@ var BrewRenderer = React.createClass({
},
handleScroll : function(e){
console.log('sco');
this.setState({
viewablePageNumber : Math.floor(e.target.scrollTop / PAGE_HEIGHT)
});
@@ -55,7 +53,7 @@ var BrewRenderer = React.createClass({
renderPageInfo : function(){
return <div className='pageInfo'>
{this.state.viewablePageNumber} / {this.totalPages}
{this.state.viewablePageNumber + 1} / {this.totalPages}
</div>
},

View File

@@ -1,23 +1,30 @@
@import (less) './client/homebrew/phbStyle/phb.style.less';
.brewRenderer{
.pane{
position: relative;
}
.brewRenderer{
overflow-y: scroll;
//height : calc(~"100%");
.pageInfo{
background-color: black;
background-color: #333;
color : White;
position: absolute;
padding: 30px;
padding: 8px 10px;
font-weight: 800;
font-size: 10px;
z-index : 1000;
bottom: 0;
right : 0;
right : 17px;
}
.pages{
margin: 30px 0px;
&>.phb{
margin-right : auto;