Skip to content

Commit 9136733

Browse files
committed
Show default cursor on Instruct bar when editing
1 parent 5ab05fb commit 9136733

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

src/components/Workspace.jsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import partial from 'lodash/partial';
1111
import map from 'lodash/map';
1212
import {t} from 'i18next';
1313
import qs from 'qs';
14+
import classnames from 'classnames';
1415
import {getNodeWidth, getNodeWidths} from '../util/resize';
1516
import {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">&#xf05a;</span>
214+
<span
215+
className={classnames('u__icon', {
216+
u__icon_disabled: this.props.isEditingInstructions,
217+
})}
218+
>&#xf05a;</span>
211219
</div>
212220
);
213221
}

src/css/application.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)