Make draggable nodes noticable with border

This commit is contained in:
2018-04-09 08:46:12 +05:30
parent d91ff9e53c
commit f87b420d05
2 changed files with 11 additions and 5 deletions
@@ -1,9 +1,14 @@
.draggable-node {
cursor: move;
user-select: none;
position: absolute;
left: 0;
top: 0;
padding: 0.5em;
padding: 0.25em;
border: 1px solid black;
}
.draggable-node.selected {
border-color: blue;
}
@@ -41,9 +41,10 @@ export class DraggableNode extends React.Component<DraggableNodeProps, {}> {
return (
<CustomConsumer>
{(dragSharedInfo) => {
return this.renderChildren(dragSharedInfo);
}
{
(dragSharedInfo) => {
return this.renderChildren(dragSharedInfo);
}
}
</CustomConsumer>
);