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

Adding in line highlight for new pages

This commit is contained in:
Scott Tolksdorf
2017-01-19 12:10:19 -05:00
parent 70346ffce7
commit 9fe6fd979b
2 changed files with 6 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ const Editor = React.createClass({
componentDidMount: function() { componentDidMount: function() {
this.updateEditorSize(); this.updateEditorSize();
this.highlightPageLines();
window.addEventListener("resize", this.updateEditorSize); window.addEventListener("resize", this.updateEditorSize);
}, },
componentWillUnmount: function() { componentWillUnmount: function() {
@@ -108,6 +109,7 @@ const Editor = React.createClass({
}, },
render : function(){ render : function(){
this.highlightPageLines();
return( return(
<div className='editor' ref='main'> <div className='editor' ref='main'>
<SnippetBar <SnippetBar

View File

@@ -5,6 +5,10 @@
.codeEditor{ .codeEditor{
height : 100%; height : 100%;
.pageLine{
background-color : fade(#333, 15%);
border-bottom : #333 solid 1px;
}
} }
.brewJump{ .brewJump{