refactor(nodes): no fix width for wrapper node
This commit is contained in:
@@ -5,7 +5,8 @@ import Handle from '../Handle';
|
||||
const nodeStyles = {
|
||||
background: '#ff6060',
|
||||
padding: 10,
|
||||
borderRadius: 5
|
||||
borderRadius: 5,
|
||||
width: 150
|
||||
};
|
||||
|
||||
export default ({ data, style }) => (
|
||||
|
||||
@@ -5,7 +5,8 @@ import Handle from '../Handle';
|
||||
const nodeStyles = {
|
||||
background: '#9999ff',
|
||||
padding: 10,
|
||||
borderRadius: 5
|
||||
borderRadius: 5,
|
||||
width: 150
|
||||
};
|
||||
|
||||
export default ({ data, style }) => (
|
||||
|
||||
@@ -5,7 +5,8 @@ import Handle from '../Handle';
|
||||
const nodeStyles = {
|
||||
background: '#55ff99',
|
||||
padding: 10,
|
||||
borderRadius: 5
|
||||
borderRadius: 5,
|
||||
width: 150
|
||||
};
|
||||
|
||||
export default ({ data, style }) => (
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
|
||||
.react-graph__node {
|
||||
position: absolute;
|
||||
width: 150px;
|
||||
color: #222;
|
||||
font-family: sans-serif;
|
||||
font-size: 12px;
|
||||
|
||||
Reference in New Issue
Block a user