Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataViews: Tweak primary field in patterns grid layout #66733

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -123,12 +123,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 @@ -143,7 +138,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
Loading