0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 19:32:42 +00:00

Add wrapper to .page to improve wide behavior with columns

This commit is contained in:
Trevor Buckner
2021-08-22 23:00:43 -04:00
parent 653fd513ad
commit 9c6d875524
3 changed files with 16 additions and 4 deletions

View File

@@ -131,7 +131,11 @@ const BrewRenderer = createClass({
if(this.props.renderer == 'legacy')
return <div className='phb page' id={`p${index + 1}`} dangerouslySetInnerHTML={{ __html: MarkdownLegacy.render(pageText) }} key={index} />;
else
return <div className='phb3 page' id={`p${index + 1}`} dangerouslySetInnerHTML={{ __html: Markdown.render(pageText) }} key={index} />;
return (
<div className='pageWrapper' id={`p${index + 1}`} key={index} >
<div className='page' dangerouslySetInnerHTML={{ __html: Markdown.render(pageText) }} />
</div>
);
},
renderPages : function(){

View File

@@ -11,6 +11,12 @@
margin-left : auto;
box-shadow : 1px 4px 14px #000;
}
&>.pageWrapper{
margin-right : auto;
margin-bottom : 30px;
margin-left : auto;
box-shadow : 1px 4px 14px #000;
}
}
}
.pane{