From 0df0bc31785106188e98e82374ebc7f769b25c81 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Tue, 5 Nov 2024 12:38:31 +0900 Subject: [PATCH] DataViews: Tweak primary field in patterns grid layout --- .../edit-site/src/components/page-patterns/fields.js | 11 +++-------- .../edit-site/src/components/page-patterns/style.scss | 5 ----- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/packages/edit-site/src/components/page-patterns/fields.js b/packages/edit-site/src/components/page-patterns/fields.js index 74433b3de72f0e..a0504cd46d8c65 100644 --- a/packages/edit-site/src/components/page-patterns/fields.js +++ b/packages/edit-site/src/components/page-patterns/fields.js @@ -10,7 +10,7 @@ import { __experimentalHStack as HStack, Button, Tooltip, - Flex, + FlexBlock, } from '@wordpress/components'; import { __, _x } from '@wordpress/i18n'; import { useState, useMemo, useId } from '@wordpress/element'; @@ -123,12 +123,7 @@ function TitleField( { item } ) { const title = decodeEntities( defaultGetTitle( item ) ); return ( - + { item.type === PATTERN_TYPES.theme ? ( title ) : ( @@ -143,7 +138,7 @@ function TitleField( { item } ) { { title } ) } - + { item.type === PATTERN_TYPES.theme && (