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:
@@ -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
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
.codeEditor{
|
.codeEditor{
|
||||||
height : 100%;
|
height : 100%;
|
||||||
|
.pageLine{
|
||||||
|
background-color : fade(#333, 15%);
|
||||||
|
border-bottom : #333 solid 1px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.brewJump{
|
.brewJump{
|
||||||
|
|||||||
Reference in New Issue
Block a user