mirror of
https://github.com/strapi/strapi.git
synced 2025-09-18 04:47:27 +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
|
// This component is needed in order to add the date icon inside the InputDate
|
||||||
const isDate = get(schema, [filter.attr, 'type'], 'string') === 'date';
|
const isDate = get(schema, [filter.attr, 'type'], 'string') === 'date';
|
||||||
|
const isBool = get(schema, [filter.attr, 'type']) === 'boolean';
|
||||||
const selectOptionsSchema = Object
|
const selectOptionsSchema = Object
|
||||||
.keys(schema)
|
.keys(schema)
|
||||||
.filter(x => schema[x].type !== 'json');
|
.filter(x => schema[x].type !== 'json');
|
||||||
@ -71,7 +72,7 @@ function FilterOptions({ filter, filterToFocus, index, onChange, onClickAdd, onC
|
|||||||
{showAddButton && (
|
{showAddButton && (
|
||||||
<Add
|
<Add
|
||||||
onClick={onClickAdd}
|
onClick={onClickAdd}
|
||||||
style={{ marginLeft: '6px' }}
|
style={{ marginLeft: isBool? '14px': '6px' }}
|
||||||
type="button"
|
type="button"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -55,7 +55,7 @@ class FiltersPickWrapper extends React.PureComponent {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.setState({ showInput: false });
|
this.setState({ showInput: false });
|
||||||
resolve();
|
resolve();
|
||||||
}, 1000);
|
}, 300);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user