diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index da42fb93c..c490e92b6 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -138,7 +138,7 @@ const Editor = forwardRef( useEffect(()=>{ if(liveScroll) brewJump(currentEditorViewPageNum, false); }, [currentEditorViewPageNum, liveScroll]); useEffect(()=>{ if(liveScroll) brewJump(currentEditorCursorPageNum, false); }, [currentEditorCursorPageNum, liveScroll]); - const handleFormatCode = () => { + const handleFormatCode = ()=>{ codeEditor.current?.formatCode(); }; diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index 6ad0f5ce2..988108a0a 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -35,22 +35,22 @@ const Snippetbar = createReactClass({ displayName : 'SnippetBar', getDefaultProps : function() { return { - brew : {}, - view : 'text', - onViewChange : ()=>{}, - onInject : ()=>{}, - onToggle : ()=>{}, - showEditButtons : true, - renderer : 'legacy', - undo : ()=>{}, - redo : ()=>{}, - historySize : ()=>{}, - foldCode : ()=>{}, - unfoldCode : ()=>{}, - formatCode : ()=>{}, - cursorPos : {}, - themeBundle : [], - updateBrew : ()=>{} + brew : {}, + view : 'text', + onViewChange : ()=>{}, + onInject : ()=>{}, + onToggle : ()=>{}, + showEditButtons : true, + renderer : 'legacy', + undo : ()=>{}, + redo : ()=>{}, + historySize : ()=>{}, + foldCode : ()=>{}, + unfoldCode : ()=>{}, + formatCode : ()=>{}, + cursorPos : {}, + themeBundle : [], + updateBrew : ()=>{} }; }, diff --git a/client/homebrew/editor/snippetbar/snippetbar.less b/client/homebrew/editor/snippetbar/snippetbar.less index 0d1f032cf..99a68504c 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.less +++ b/client/homebrew/editor/snippetbar/snippetbar.less @@ -6,24 +6,24 @@ --activeTriggerColor : inherit; --menuColor : #DDDDDD; @menuHeight : 25px; - position : relative; - display : flex; - flex-wrap : wrap-reverse; - reading-flow : flex-visual; - justify-content : space-between; - height : auto; - color : black; - background-color : #DDDDDD; - font-size : .65rem; - font-family: 'Open Sans', sans-serif; - text-transform: uppercase; - font-weight: 800; + position : relative; + display : flex; + flex-wrap : wrap-reverse; + justify-content : space-between; + height : auto; + font-family : 'Open Sans', sans-serif; + font-size : 0.65rem; + font-weight : 800; + color : black; + text-transform : uppercase; + background-color : #DDDDDD; + reading-flow : flex-visual; .editors { display : flex; justify-content : flex-end; min-width : 275px; //must be controlled every time an item is added, must be hardcoded for the wrapping as it is applied - font-size: .85rem; + font-size : 0.85rem; &:only-child {min-width : unset; margin-left : auto;} reading-order : 2; @@ -211,7 +211,7 @@ } } @container editor (width < 841px) { - .snippetBar { + .snippetBar { .editors { flex : 1; justify-content : space-between; diff --git a/client/homebrew/editor/uiEditor.less b/client/homebrew/editor/uiEditor.less index 64d1ecff8..0b7c004c7 100644 --- a/client/homebrew/editor/uiEditor.less +++ b/client/homebrew/editor/uiEditor.less @@ -216,8 +216,8 @@ } a { - color:black; - text-underline-offset:0.2em; + color : black; + text-underline-offset : 0.2em; } }