Skip to content
Snippets Groups Projects
Commit 1ac70cae authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Adjusts sidepanel layout

parent ebf20922
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56902 passed
......@@ -484,24 +484,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
onChange={this.onHistoryChange}
/>
<hr />
<ul className="instructions">
<li>Click background to create node</li>
<li>SHIFT+Click background to clear selection</li>
<li>Click node to select and edit</li>
<li>CTRL+Click node to delete</li>
<li>CTRL+Click link to delete</li>
<li>SHIFT+Click a second node to connect</li>
{this.state.connectOnDrag ? (
<li>
Drag node close to other node to connect
</li>
) : (
""
)}
<li>DELETE to delete selected node</li>
<li>ESCAPE to clear selection</li>
</ul>
<hr />
<NodeDetails
selectedNode={this.state.selectedNode}
allTypes={
......@@ -554,6 +536,24 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
<label htmlFor="connect-on-drag">
Connect nodes when dragged
</label>
<hr />
<ul className="instructions">
<li>Click background to create node</li>
<li>SHIFT+Click background to clear selection</li>
<li>Click node to select and edit</li>
<li>CTRL+Click node to delete</li>
<li>CTRL+Click link to delete</li>
<li>SHIFT+Click a second node to connect</li>
{this.state.connectOnDrag ? (
<li>
Drag node close to other node to connect
</li>
) : (
""
)}
<li>DELETE to delete selected node</li>
<li>ESCAPE to clear selection</li>
</ul>
</div>
</div>
</div>
......
......@@ -7,3 +7,8 @@ div#ks-editor #nodedetails .preview-image {
max-width: 3rem;
width: auto;
}
div#ks-editor #nodedetails #node-name {
font-weight: bold;
font-size: large;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment