0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 08:22:42 +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){ handleScroll : function(e){
console.log('sco');
this.setState({ this.setState({
viewablePageNumber : Math.floor(e.target.scrollTop / PAGE_HEIGHT) viewablePageNumber : Math.floor(e.target.scrollTop / PAGE_HEIGHT)
}); });
@@ -55,7 +53,7 @@ var BrewRenderer = React.createClass({
renderPageInfo : function(){ renderPageInfo : function(){
return <div className='pageInfo'> return <div className='pageInfo'>
{this.state.viewablePageNumber} / {this.totalPages} {this.state.viewablePageNumber + 1} / {this.totalPages}
</div> </div>
}, },

View File

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

View File

@@ -3,8 +3,8 @@
## v1.5 todo ## v1.5 todo
X Make statusbar un-fixed X Make statusbar un-fixed
X Simplify the panel css to remove the current issues X Simplify the panel css to remove the current issues
- Build new `BrewRenderer`, clean support for partial rendering X Build new `BrewRenderer`, clean support for partial rendering
- Add `infoBox` to BrewRenderer to show views, and current pages X Add `infoBox` to BrewRenderer to show views, and current pages
- remove old status bar - remove old status bar
X remove jsoneditor (if we don't need it) X remove jsoneditor (if we don't need it)
X Add in markdown editor X Add in markdown editor
@@ -12,13 +12,13 @@ X Add in markdown editor
X Add pagniation and query to the homebrew api X Add pagniation and query to the homebrew api
X Update the admin page with pagnition and a query box X Update the admin page with pagnition and a query box
X Test the old/small brew filtering for deleteion X Test the old/small brew filtering for deleteion
- Partial rendering kills style tags on unrendered pages. Detect if pages have style tags and render them. X Partial rendering kills style tags on unrendered pages. Detect if pages have style tags and render them.
- Add in the link of Pateron? - Add in the link of Pateron?
- Add in brew title, use for metadata? - Add in brew title, use for metadata?
- Add in specific entry point rendering in server.js - Add in specific entry point rendering in server.js
- Add in a tutorial page? - Add in a tutorial page?
- Add in a localstorage fallback on the `/new` page, clear it when they save - Add in a localstorage fallback on the `/new` page, clear it when they save
- Rename `/client/naturalCrit` -> `/client/home` X Rename `/client/naturalCrit` -> `/client/main`
## v1.6 ## v1.6
- Add error handling to the saving wdiget in the status bar - Add error handling to the saving wdiget in the status bar