Skip to content

Commit

Permalink
[Post Featured Image]: Revert maxWidth addition (#50427)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored May 8, 2023
1 parent 09a24e5 commit 05f779d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-featured-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function PostFeaturedImageEdit( {
} ) );

const blockProps = useBlockProps( {
style: { width, height, aspectRatio, maxWidth: '100%' },
style: { width, height, aspectRatio },
} );
const borderProps = useBorderProps( attributes );

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-featured-image/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
if ( ! $height && ! $width && ! $aspect_ratio ) {
$wrapper_attributes = get_block_wrapper_attributes();
} else {
$wrapper_attributes = get_block_wrapper_attributes( array( 'style' => $aspect_ratio . $width . $height . 'max-width:100%;' ) );
$wrapper_attributes = get_block_wrapper_attributes( array( 'style' => $aspect_ratio . $width . $height ) );
}
return "<figure {$wrapper_attributes}>{$featured_image}</figure>";
}
Expand Down

1 comment on commit 05f779d

@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 05f779d.
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/4914502622
📝 Reported issues:

Please sign in to comment.