Skip to content

Commit

Permalink
Merge pull request #12797 from amritanarasimhan/fixingIssue110
Browse files Browse the repository at this point in the history
Fixing design issue with toolbar 

Former-commit-id: d331b88d1a39d57621304dd46b3779622aa4d7ce
  • Loading branch information
carolhmj authored Jul 26, 2022
2 parents 68c36dd + 4db88a9 commit 0c10663
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tools/guiEditor/src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}
}
.toolbar-icon {
width: 20px;
width: 40px;
height: 40px;
}
&.expanded {
Expand Down
5 changes: 5 additions & 0 deletions packages/tools/guiEditor/src/workbenchEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEd
};
switchExpandedState(): void {
this.setState({ toolbarExpand: !this.state.toolbarExpand });
if (!this.state.toolbarExpand) {
this._leftWidth = this._leftWidth - 50;
} else {
this._leftWidth = this._leftWidth + 50;
}
}

render() {
Expand Down

0 comments on commit 0c10663

Please sign in to comment.