mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 07:32:40 +00:00
Merge pull request #2388 from Gazook89/Display-Renderer-on-Page
Add renderer to pageInfo
This commit is contained in:
@@ -109,7 +109,12 @@ const BrewRenderer = createClass({
|
|||||||
|
|
||||||
renderPageInfo : function(){
|
renderPageInfo : function(){
|
||||||
return <div className='pageInfo' ref='main'>
|
return <div className='pageInfo' ref='main'>
|
||||||
{this.state.viewablePageNumber + 1} / {this.state.pages.length}
|
<div>
|
||||||
|
{this.props.renderer}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{this.state.viewablePageNumber + 1} / {this.state.pages.length}
|
||||||
|
</div>
|
||||||
</div>;
|
</div>;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -21,11 +21,17 @@
|
|||||||
right : 17px;
|
right : 17px;
|
||||||
bottom : 0;
|
bottom : 0;
|
||||||
z-index : 1000;
|
z-index : 1000;
|
||||||
padding : 8px 10px;
|
|
||||||
background-color : #333;
|
background-color : #333;
|
||||||
font-size : 10px;
|
font-size : 10px;
|
||||||
font-weight : 800;
|
font-weight : 800;
|
||||||
color : white;
|
color : white;
|
||||||
|
div {
|
||||||
|
display: inline-block;
|
||||||
|
padding : 8px 10px;
|
||||||
|
&:not(:last-child){
|
||||||
|
border-right: 1px solid #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.ppr_msg{
|
.ppr_msg{
|
||||||
position : absolute;
|
position : absolute;
|
||||||
|
|||||||
Reference in New Issue
Block a user