Skip to content

Commit

Permalink
refactor(nodes): no fix width for wrapper node
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed Jul 24, 2019
1 parent 4ab04a4 commit 31c1f56
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/NodeRenderer/NodeTypes/DefaultNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import Handle from '../Handle';
const nodeStyles = {
background: '#ff6060',
padding: 10,
borderRadius: 5
borderRadius: 5,
width: 150
};

export default ({ data, style }) => (
Expand Down
3 changes: 2 additions & 1 deletion src/NodeRenderer/NodeTypes/InputNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import Handle from '../Handle';
const nodeStyles = {
background: '#9999ff',
padding: 10,
borderRadius: 5
borderRadius: 5,
width: 150
};

export default ({ data, style }) => (
Expand Down
3 changes: 2 additions & 1 deletion src/NodeRenderer/NodeTypes/OutputNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import Handle from '../Handle';
const nodeStyles = {
background: '#55ff99',
padding: 10,
borderRadius: 5
borderRadius: 5,
width: 150
};

export default ({ data, style }) => (
Expand Down
1 change: 0 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@

.react-graph__node {
position: absolute;
width: 150px;
color: #222;
font-family: sans-serif;
font-size: 12px;
Expand Down

0 comments on commit 31c1f56

Please sign in to comment.