Skip to content

Commit

Permalink
fixed lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shail-mehta committed Jan 24, 2025
1 parent 8cffd4c commit 8733bfd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/edit-site/src/components/page-patterns/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function PreviewField( { item } ) {
>
{ isEmpty && isTemplatePart && __( 'Empty template part' ) }
{ isEmpty && ! isTemplatePart && __( 'Empty pattern' ) }

{ ! isEmpty && (
<BlockPreview.Async>
<BlockPreview
Expand Down
10 changes: 5 additions & 5 deletions packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
.page-patterns-preview-field {
display: flex;
justify-content: center;
align-items: center;
align-items: center;
flex-direction: column;
height: 100%;
border-radius: $radius-medium;

.dataviews-view-grid & {
.block-editor-block-preview__container {
height: 100%;
}
}
.block-editor-block-preview__container {
height: 100%;
}
}

.dataviews-view-table & {
width: 96px;
Expand Down
1 change: 0 additions & 1 deletion packages/edit-site/src/components/page-templates/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function PreviewField( { item } ) {
style={ { backgroundColor } }
>
{ isEmpty && __( 'Empty template' ) }

{ ! isEmpty && (
<BlockPreview.Async>
<BlockPreview blocks={ blocks } />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.page-templates-preview-field {
display: flex;
justify-content: center;
align-items: center;
align-items: center;
flex-direction: column;
height: 100%;
width: 100%;
Expand Down

0 comments on commit 8733bfd

Please sign in to comment.