From 5c8e7cb05f1078c08b1ea839562a97843d78e8e4 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Mon, 8 May 2023 13:25:58 +0300 Subject: [PATCH] [Post Featured Image]: Revert maxWidth addition --- packages/block-library/src/post-featured-image/edit.js | 2 +- packages/block-library/src/post-featured-image/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/post-featured-image/edit.js b/packages/block-library/src/post-featured-image/edit.js index 6500775cd5abf2..96295a641a13cc 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -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 ); diff --git a/packages/block-library/src/post-featured-image/index.php b/packages/block-library/src/post-featured-image/index.php index 41de46bf61013b..6cb4110ee000e6 100644 --- a/packages/block-library/src/post-featured-image/index.php +++ b/packages/block-library/src/post-featured-image/index.php @@ -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 "
{$featured_image}
"; }