Skip to content

Commit

Permalink
DataViews: Tweak primary field in patterns grid layout (#66733)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
5 people authored Nov 6, 2024
1 parent 452d3b0 commit fe2dcb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
11 changes: 3 additions & 8 deletions packages/edit-site/src/components/page-patterns/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -122,12 +122,7 @@ function TitleField( { item } ) {
const title = decodeEntities( defaultGetTitle( item ) );
return (
<HStack alignment="center" justify="flex-start" spacing={ 2 }>
<Flex
as="div"
gap={ 0 }
justify="flex-start"
className="edit-site-patterns__pattern-title"
>
<FlexBlock className="edit-site-patterns__pattern-title">
{ item.type === PATTERN_TYPES.theme ? (
title
) : (
Expand All @@ -142,7 +137,7 @@ function TitleField( { item } ) {
{ title }
</Button>
) }
</Flex>
</FlexBlock>
{ item.type === PATTERN_TYPES.theme && (
<Tooltip
placement="top"
Expand Down
5 changes: 0 additions & 5 deletions packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
flex-shrink: 0;
}

.edit-site-patterns__pattern-lock-icon {
min-width: min-content;
}

.edit-site-patterns__section-header {
border-bottom: 1px solid #f0f0f0;
padding: $grid-unit-20 $grid-unit-60;
Expand Down Expand Up @@ -77,7 +73,6 @@

.edit-site-patterns__pattern-title {
display: block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand Down

1 comment on commit fe2dcb6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in fe2dcb6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11700700739
📝 Reported issues:

Please sign in to comment.