style(nodes): default styles
This commit is contained in:
@@ -11,8 +11,8 @@ const nodeStyles = {
|
||||
|
||||
export default ({ data, style }) => (
|
||||
<div style={{ ...nodeStyles, ...style }}>
|
||||
<Handle style={{ top: 0 }} />
|
||||
<Handle input />
|
||||
{data.label}
|
||||
<Handle style={{ bottom: 0, top: 'auto', transform: 'translate(-50%, 50%)' }} />
|
||||
<Handle output />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -15,6 +15,6 @@ export default ({ data, style }) => (
|
||||
className="react-graph__node-inner"
|
||||
>
|
||||
{data.label}
|
||||
<Handle style={{ bottom: 0, top: 'auto', transform: 'translate(-50%, 50%)' }} />
|
||||
<Handle output />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from 'react';
|
||||
import Handle from '../Handle';
|
||||
|
||||
const nodeStyles = {
|
||||
background: '#55ff99',
|
||||
background: '#55dd99',
|
||||
padding: 10,
|
||||
borderRadius: 5,
|
||||
width: 150
|
||||
@@ -11,7 +11,7 @@ const nodeStyles = {
|
||||
|
||||
export default ({ data, style }) => (
|
||||
<div style={{ ...nodeStyles, ...style }}>
|
||||
<Handle style={{ top: 0 }} />
|
||||
<Handle input />
|
||||
{data.label}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user