diff --git a/packages/dataviews/src/dataviews.js b/packages/dataviews/src/dataviews.js index c7ae6b6e27aad8..49143d0bb0753e 100644 --- a/packages/dataviews/src/dataviews.js +++ b/packages/dataviews/src/dataviews.js @@ -79,17 +79,30 @@ export default function DataViews( {
- { search && ( - + { search && ( + + ) } + - ) } + { [ LAYOUT_TABLE, LAYOUT_GRID ].includes( view.type ) && ( - - - + { filterComponents } + + ); } ); export default Filters; diff --git a/packages/dataviews/src/style.scss b/packages/dataviews/src/style.scss index 81aaa97e670a43..a5c651a7ad6a34 100644 --- a/packages/dataviews/src/style.scss +++ b/packages/dataviews/src/style.scss @@ -13,8 +13,6 @@ .dataviews-filters__view-actions { padding: $grid-unit-15 $grid-unit-40 0; .components-search-control { - flex-grow: 1; - .components-base-control__field { max-width: 240px; } @@ -22,11 +20,7 @@ } .dataviews-filters__container { - padding: 0 $grid-unit-40; -} - -.dataviews-filters__view-actions.components-h-stack { - align-items: center; + padding-right: $grid-unit-40; } .dataviews-filters-button {