From 35d0a462e8447db1b21d4614eb2e1c0c5456feb7 Mon Sep 17 00:00:00 2001 From: moklick Date: Sat, 30 May 2020 20:56:26 +0200 Subject: [PATCH] style(example): add padding for custom node --- example/src/CustomNode/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/CustomNode/index.js b/example/src/CustomNode/index.js index b64793e0..f2fc8fed 100644 --- a/example/src/CustomNode/index.js +++ b/example/src/CustomNode/index.js @@ -37,7 +37,7 @@ const CustomNodeFlow = () => { setElements([ { id: '1', type: 'input', data: { label: 'An input node' }, position: { x: 0, y: 50 }, sourcePosition: 'right' }, - { id: '2', type: 'selectorNode', data: { onChange: onChange, color: initBgColor }, style: { border: '1px solid #777' }, position: { x: 250, y: 50 } }, + { id: '2', type: 'selectorNode', data: { onChange: onChange, color: initBgColor }, style: { border: '1px solid #777', padding: 10 }, position: { x: 250, y: 50 } }, { id: '3', type: 'output', data: { label: 'Output A' }, position: { x: 550, y: 25 }, targetPosition: 'left' }, { id: '4', type: 'output', data: { label: 'Output B' }, position: { x: 550, y: 100 }, targetPosition: 'left' },