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

So much polish

This commit is contained in:
Scott Tolksdorf
2016-01-04 17:02:55 -05:00
parent b1b69437ea
commit fb8ddfe9fa
16 changed files with 146 additions and 62 deletions

View File

@@ -55,6 +55,11 @@ var Icons = [
icon : 'fa-arrows-v',
snippet : "<div style='margin-top:140px'></div>\n\n",
tooltip : "Vertical Spacing"
},
{
icon : 'fa-image',
snippet : "<img />",
tooltip : "Insert Image"
}
@@ -68,6 +73,10 @@ var Editor = React.createClass({
};
},
componentDidMount: function() {
this.refs.textarea.focus();
},
handleTextChange : function(e){
this.props.onChange(e.target.value);
},

View File

@@ -4,11 +4,13 @@
height : 100%;
min-height : 100%;
width : 100%;
display: flex;
flex-direction: column;
.textIcons{
position : absolute;
display : inline-block;
vertical-align : top;
.icon{
display : inline-block;
height : 30px;
width : 30px;
cursor : pointer;
@@ -26,10 +28,13 @@
}
}
textarea{
display : inline-block;
box-sizing : border-box;
resize : none;
overflow-y : scroll;
height : 100%;
width : 100%;
padding : 10px;
border : none;
outline: none;
}
}