From fe2dcb6ff022b90516021a5d35a0e8bf23b7ac4b Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:24:56 +0900 Subject: [PATCH] DataViews: Tweak primary field in patterns grid layout (#66733) Co-authored-by: t-hamano Co-authored-by: youknowriad Co-authored-by: jameskoster Co-authored-by: jasmussen --- .../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 0ad47e90c2040..e016dca6cd855 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'; @@ -122,12 +122,7 @@ function TitleField( { item } ) { const title = decodeEntities( defaultGetTitle( item ) ); return ( - + { item.type === PATTERN_TYPES.theme ? ( title ) : ( @@ -142,7 +137,7 @@ function TitleField( { item } ) { { title } ) } - + { item.type === PATTERN_TYPES.theme && (