mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
Remove from snippet bar
This commit is contained in:
@@ -291,8 +291,6 @@ const Editor = createClass({
|
||||
renderer={this.props.renderer}
|
||||
undo={this.undo}
|
||||
redo={this.redo}
|
||||
brewJump={this.brewJump}
|
||||
sourceJump={this.sourceJump}
|
||||
historySize={this.historySize()} />
|
||||
|
||||
{this.renderEditor()}
|
||||
|
||||
@@ -65,30 +65,10 @@ const Snippetbar = createClass({
|
||||
this.props.brewJump(1);
|
||||
},
|
||||
|
||||
moveBrew : function(){
|
||||
this.props.brewJump();
|
||||
},
|
||||
|
||||
moveSource : function(){
|
||||
this.props.sourceJump();
|
||||
},
|
||||
|
||||
renderEditorButtons : function(){
|
||||
if(!this.props.showEditButtons) return;
|
||||
|
||||
return <div className='editors'>
|
||||
<div className={`editorTool fromBrew ${['text'].includes(this.props.view) ? 'active' : ''}`}
|
||||
onClick={this.moveSource} >
|
||||
<i className='fas fa-arrow-left' />
|
||||
</div>
|
||||
<div className={`editorTool toTop ${['text', 'style'].includes(this.props.view) ? 'active' : ''}`}
|
||||
onClick={this.toTop} >
|
||||
<i className='fas fa-arrow-up' />
|
||||
</div>
|
||||
<div className={`editorTool toBrew ${['text'].includes(this.props.view) ? 'active' : ''}`}
|
||||
onClick={this.moveBrew} >
|
||||
<i className='fas fa-arrow-right' />
|
||||
</div>
|
||||
<div className={`editorTool undo ${this.props.historySize.undo ? 'active' : ''}`}
|
||||
onClick={this.props.undo} >
|
||||
<i className='fas fa-undo' />
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
top : 0px;
|
||||
right : 0px;
|
||||
height : @menuHeight;
|
||||
width : 175px;
|
||||
width : 125px;
|
||||
justify-content : space-between;
|
||||
&>div{
|
||||
height : @menuHeight;
|
||||
|
||||
Reference in New Issue
Block a user