diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index 0c6b5cc38..2be9e4775 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -60,10 +60,19 @@ const Snippetbar = createClass({ }); }, + toTop : function(){ + this.props.brewJump(1); + this.props.sourceJump(1); + }, + renderEditorButtons : function(){ if(!this.props.showEditButtons) return; return
+
+ +
diff --git a/client/homebrew/editor/snippetbar/snippetbar.less b/client/homebrew/editor/snippetbar/snippetbar.less index 371f51fda..fe374f594 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.less +++ b/client/homebrew/editor/snippetbar/snippetbar.less @@ -46,6 +46,14 @@ color : black; } } + &.toTop{ + .tooltipLeft('Back to Top'); + font-size : 0.75em; + color : grey; + &.active{ + color : black; + } + } &.divider { background: linear-gradient(#000, #000) no-repeat center/1px 100%; width: 5px;