File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import partial from 'lodash/partial';
1111import map from 'lodash/map' ;
1212import { t } from 'i18next' ;
1313import qs from 'qs' ;
14+ import classnames from 'classnames' ;
1415import { getNodeWidth , getNodeWidths } from '../util/resize' ;
1516import { dehydrateProject , rehydrateProject } from '../clients/localStorage' ;
1617
@@ -204,10 +205,17 @@ class Workspace extends React.Component {
204205
205206 return (
206207 < div
207- className = "layout__instructions-bar"
208+ className = { classnames ( 'layout__instructions-bar' , {
209+ 'layout__instructions-bar_disabled' :
210+ this . props . isEditingInstructions ,
211+ } ) }
208212 onClick = { this . _handleClickInstructionsBar }
209213 >
210- < span className = "u__icon" > </ span >
214+ < span
215+ className = { classnames ( 'u__icon' , {
216+ u__icon_disabled : this . props . isEditingInstructions ,
217+ } ) }
218+ > </ span >
211219 </ div >
212220 ) ;
213221 }
Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ body {
125125 padding : 0.25em ;
126126}
127127
128+ .layout__instructions-bar_disabled {
129+ cursor : default;
130+ }
131+
128132.layout__main {
129133 flex : 1 1 100vw ;
130134 position : relative;
@@ -852,3 +856,7 @@ body {
852856 user-select : none;
853857 text-decoration : none;
854858}
859+
860+ .u__icon_disabled {
861+ cursor : default;
862+ }
You can’t perform that action at this time.
0 commit comments