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