mirror of
https://github.com/strapi/strapi.git
synced 2025-09-17 12:27:33 +00:00
Fix margin in FilterOptions with bool select
This commit is contained in:
parent
b559f62e25
commit
e0ee3bb2a1
@ -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"
|
||||
/>
|
||||
)}
|
||||
|
@ -55,7 +55,7 @@ class FiltersPickWrapper extends React.PureComponent {
|
||||
setTimeout(() => {
|
||||
this.setState({ showInput: false });
|
||||
resolve();
|
||||
}, 1000);
|
||||
}, 300);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user