From eeb82d303e33f85ddd282617578aa32e6a39b562 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Tue, 29 Oct 2024 23:16:50 +0900 Subject: [PATCH 1/2] PostTaxonomiesFlatTermSelector: Restore space between tag list and most used tags --- .../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 5f581e898c953e..065382f9a44e16 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 ( - <> + - + ); } From 6d316c9ea93930a0257932cf32e4c80a6503f4e2 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 30 Oct 2024 00:28:54 +0900 Subject: [PATCH 2/2] Update packages/editor/src/components/post-taxonomies/flat-term-selector.js Co-authored-by: Lena Morita --- .../editor/src/components/post-taxonomies/flat-term-selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 065382f9a44e16..21a62c9819026d 100644 --- a/packages/editor/src/components/post-taxonomies/flat-term-selector.js +++ b/packages/editor/src/components/post-taxonomies/flat-term-selector.js @@ -294,7 +294,7 @@ export function FlatTermSelector( { slug, __nextHasNoMarginBottom } ) { const Wrapper = ( { children } ) => __nextHasNoMarginBottom ? ( - { children } + { children } ) : ( { children } );