diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index 8ddf4d6b8..cab7eea12 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -232,6 +232,7 @@ const Editor = createClass({ renderEditor : function(){ if(this.isText()){ + this.props.setMoveArrows(true); return <> ; } if(this.isStyle()){ + this.props.setMoveArrows(false); return <> ; } if(this.isMeta()){ + this.props.setMoveArrows(false); return <> +
this.setState({ moveSource: !this.state.moveSource })} > + +
+
this.setState({ moveBrew: !this.state.moveBrew })} > + +
+ ; + } + }, + renderDivider : function(){ return <> -
this.setState({ moveSource: !this.state.moveSource })} > - -
-
this.setState({ moveBrew: !this.state.moveBrew })} > - -
+ {this.renderMoveArrows()}
@@ -120,8 +137,9 @@ const SplitPane = createClass({ width={this.state.currentDividerPos} > {React.cloneElement(this.props.children[0], { - moveBrew : this.state.moveBrew, - moveSource : this.state.moveSource + moveBrew : this.state.moveBrew, + moveSource : this.state.moveSource, + setMoveArrows : this.setMoveArrows })} {this.renderDivider()}