Fix margin in FilterOptions with bool select

This commit is contained in:
soupette 2018-05-31 15:14:38 +02:00
parent b559f62e25
commit e0ee3bb2a1
2 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@ function FilterOptions({ filter, filterToFocus, index, onChange, onClickAdd, onC
// This component is needed in order to add the date icon inside the InputDate
const isDate = get(schema, [filter.attr, 'type'], 'string') === 'date';
const isBool = get(schema, [filter.attr, 'type']) === 'boolean';
const selectOptionsSchema = Object
.keys(schema)
.filter(x => schema[x].type !== 'json');
@ -71,7 +72,7 @@ function FilterOptions({ filter, filterToFocus, index, onChange, onClickAdd, onC
{showAddButton && (
<Add
onClick={onClickAdd}
style={{ marginLeft: '6px' }}
style={{ marginLeft: isBool? '14px': '6px' }}
type="button"
/>
)}

View File

@ -55,7 +55,7 @@ class FiltersPickWrapper extends React.PureComponent {
setTimeout(() => {
this.setState({ showInput: false });
resolve();
}, 1000);
}, 300);
});
}