From 1317894f2740ceba8eb137d017ffd2a7a836920c Mon Sep 17 00:00:00 2001 From: johnytiago Date: Wed, 9 May 2018 10:51:10 +0100 Subject: [PATCH] feat(instances): wip networks, tags --- packages/instance-steps/src/network/index.js | 10 +++- packages/instance-steps/src/tags/index.js | 48 ++++++++++--------- .../resource-widgets/src/network/index.js | 17 +++++-- packages/ui-toolkit/src/key-value/index.js | 2 +- packages/ui-toolkit/src/tags/item.js | 4 +- 5 files changed, 48 insertions(+), 33 deletions(-) diff --git a/packages/instance-steps/src/network/index.js b/packages/instance-steps/src/network/index.js index c5571d50..9e68578b 100644 --- a/packages/instance-steps/src/network/index.js +++ b/packages/instance-steps/src/network/index.js @@ -9,6 +9,8 @@ import get from 'lodash.get'; import forceArray from 'force-array'; import includes from 'lodash.includes'; import find from 'lodash.find'; +import styled from 'styled-components'; +import remcalc from 'remcalc'; import Step, { Header as StepHeader, @@ -26,6 +28,10 @@ import { Forms, Values } from '../constants'; const { IC_NW_F } = Forms; const { IC_NW_V_INFO_EXPANDED, IC_NW_V_MACHINES_EXPANDED } = Values; +const Form = styled.form` + padding-top: ${remcalc(1)}; +`; + const Network = ({ preview = [], initialValues, @@ -78,7 +84,7 @@ const Network = ({ ) : ( -
+ {networks.map( ( { @@ -105,7 +111,7 @@ const Network = ({ /> ) )} -
+