From e0ee3bb2a1798a3a61d4b4a57d4f3d98bc08fc6c Mon Sep 17 00:00:00 2001 From: soupette Date: Thu, 31 May 2018 15:14:38 +0200 Subject: [PATCH] Fix margin in FilterOptions with bool select --- .../admin/src/components/FilterOptions/index.js | 3 ++- .../admin/src/components/FiltersPickWrapper/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/strapi-plugin-content-manager/admin/src/components/FilterOptions/index.js b/packages/strapi-plugin-content-manager/admin/src/components/FilterOptions/index.js index e41e572a8e..0760acd8ef 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/FilterOptions/index.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/FilterOptions/index.js @@ -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 && ( )} diff --git a/packages/strapi-plugin-content-manager/admin/src/components/FiltersPickWrapper/index.js b/packages/strapi-plugin-content-manager/admin/src/components/FiltersPickWrapper/index.js index 74deb5cb30..e7f80877fe 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/FiltersPickWrapper/index.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/FiltersPickWrapper/index.js @@ -55,7 +55,7 @@ class FiltersPickWrapper extends React.PureComponent { setTimeout(() => { this.setState({ showInput: false }); resolve(); - }, 1000); + }, 300); }); }