From bcdba599018c2b210ab1af789b21326bd53211b7 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 30 Oct 2024 01:27:34 +0900 Subject: [PATCH] PostTaxonomiesFlatTermSelector: Restore space between tag list and most used tags (#66566) * PostTaxonomiesFlatTermSelector: Restore space between tag list and most used tags * Update packages/editor/src/components/post-taxonomies/flat-term-selector.js Co-authored-by: Lena Morita --------- Co-authored-by: t-hamano Co-authored-by: mirka <0mirka00@git.wordpress.org> --- .../post-taxonomies/flat-term-selector.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/editor/src/components/post-taxonomies/flat-term-selector.js b/packages/editor/src/components/post-taxonomies/flat-term-selector.js index 5f581e898c953..21a62c9819026 100644 --- a/packages/editor/src/components/post-taxonomies/flat-term-selector.js +++ b/packages/editor/src/components/post-taxonomies/flat-term-selector.js @@ -2,8 +2,12 @@ * WordPress dependencies */ import { __, _x, sprintf } from '@wordpress/i18n'; -import { useEffect, useMemo, useState } from '@wordpress/element'; -import { FormTokenField, withFilters } from '@wordpress/components'; +import { Fragment, useEffect, useMemo, useState } from '@wordpress/element'; +import { + FormTokenField, + withFilters, + __experimentalVStack as VStack, +} from '@wordpress/components'; import { useSelect, useDispatch } from '@wordpress/data'; import deprecated from '@wordpress/deprecated'; import { store as coreStore } from '@wordpress/core-data'; @@ -288,8 +292,15 @@ export function FlatTermSelector( { slug, __nextHasNoMarginBottom } ) { singularName ); + const Wrapper = ( { children } ) => + __nextHasNoMarginBottom ? ( + { children } + ) : ( + { children } + ); + return ( - <> + - + ); }