fix(my-joy-beta): fix affinity field sizes

# Conflicts:
#	packages/my-joy-beta/src/containers/create-instance/index.js
This commit is contained in:
Sérgio Ramos 2018-02-21 23:02:44 +00:00
parent 01e10c6962
commit 50c1b6e9b1
3 changed files with 5 additions and 4 deletions

View File

@ -37,8 +37,8 @@ export const Rule = rule => (
width={remcalc(66)}
embedded
>
<option value="must">must</option>
<option value="should">should</option>
<option value="must">must</option>
</Select>
</FormGroup>
<H5 style={style} inline noMargin>
@ -48,7 +48,7 @@ export const Rule = rule => (
<Select
style={style}
touched={rule['rule-instance-placement']}
width={remcalc(90)}
width={remcalc(100)}
embedded
>
<option value="same">the same</option>
@ -62,7 +62,7 @@ export const Rule = rule => (
<Select
style={style}
touched={rule['rule-type']}
width={remcalc(120)}
width={remcalc(135)}
embedded
left
>

View File

@ -124,7 +124,7 @@ export const Affinity = ({
</ReduxForm>
{expanded ? (
<Margin top={2} bottom={4}>
{affinityRules.length === 0 ? (
{!addOpen && affinityRules.length === 0 ? (
<Button
type="button"
onClick={() => handleChangeAddOpen(true)}

View File

@ -41,6 +41,7 @@ const CREATE_FORM = 'CREATE-INSTANCE';
const CreateInstance = ({
step,
error,
disabled,
handleSubmit,
history,