Skip to content

Commit

Permalink
respond to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulkgupta committed Jun 13, 2024
1 parent d6cf2da commit dd4221f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/editor/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export default class Main extends Component {
</div>
)}
{this.state.inspectorEnabled && (
<div id="scene-title">
<div id="action-bar">
<ActionBar
handleAddClick={this.toggleAddLayerPanel}
isAddLayerPanelOpen={this.state.isAddLayerPanelOpen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const ActionBar = ({ handleAddClick, isAddLayerPanelOpen }) => {
return (
<div>
{!isAddLayerPanelOpen && (
<div className={styles.wrapper} id="findme">
<button type="button" onClick={handleSelectClick} key="handButton">
<div className={styles.wrapper}>
<button type="button" onClick={handleSelectClick}>
<ArrowDown24Icon />
</button>
<button type="button" onClick={handleHandClick} key="handButton">
<button type="button" onClick={handleHandClick}>
<ArrowDown24Icon />
</button>
<button type="button" onClick={handleAddClick} key="addLayerButton">
<button type="button" onClick={handleAddClick}>
<Circle20Icon />
</button>
</div>
Expand Down
34 changes: 16 additions & 18 deletions src/editor/components/components/ActionBar/ActionBar.module.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
@use '../../../style/variables.scss';

.wrapper {
position: absolute;
background: rgba(55, 55, 55, 0.4);
transform: translateX(-50%);
bottom: 15%;
left: 50%;
border: unset;
height: 40px;
border-radius: 16px;
align-items: center;
display: flex;
column-gap: 8px;
padding: 8px 12px;
transition: 0.2s ease-in-out;
&:hover {
background: rgba(55, 55, 55, 0.6);
}

;
position: absolute;
background: rgba(55, 55, 55, 0.4);
transform: translateX(-50%);
bottom: 15%;
left: 50%;
border: unset;
height: 40px;
border-radius: 16px;
align-items: center;
display: flex;
column-gap: 8px;
padding: 8px 12px;
transition: 0.2s ease-in-out;
&:hover {
background: rgba(55, 55, 55, 0.6);
}
}
1 change: 1 addition & 0 deletions src/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ Inspector.prototype = {

Events.on('hidecursor', () => {
this.cursor.pause();
this.selectEntity(null);
});
Events.on('showcursor', () => {
this.cursor.play();
Expand Down

0 comments on commit dd4221f

Please sign in to comment.