0
0
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:
G.Ambatte
2022-05-29 15:24:02 +12:00
parent eca39369de
commit 4e5daf583a
3 changed files with 1 additions and 23 deletions

View File

@@ -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()}

View File

@@ -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' />

View File

@@ -10,7 +10,7 @@
top : 0px;
right : 0px;
height : @menuHeight;
width : 175px;
width : 125px;
justify-content : space-between;
&>div{
height : @menuHeight;