mirror of
https://github.com/bendtherules/piktochart-create-editor.git
synced 2026-08-18 13:52:56 +00:00
Make draggable nodes noticable with border
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user