1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2026-01-09 01:49:14 +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;

View File

@@ -3,8 +3,8 @@
## v1.5 todo
X Make statusbar un-fixed
X Simplify the panel css to remove the current issues
- Build new `BrewRenderer`, clean support for partial rendering
- Add `infoBox` to BrewRenderer to show views, and current pages
X Build new `BrewRenderer`, clean support for partial rendering
X Add `infoBox` to BrewRenderer to show views, and current pages
- remove old status bar
X remove jsoneditor (if we don't need it)
X Add in markdown editor
@@ -12,13 +12,13 @@ X Add in markdown editor
X Add pagniation and query to the homebrew api
X Update the admin page with pagnition and a query box
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 brew title, use for metadata?
- Add in specific entry point rendering in server.js
- Add in a tutorial page?
- 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
- Add error handling to the saving wdiget in the status bar