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

View File

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

View File

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