Skip to content

Commit

Permalink
[Post Featured Image]: Revert maxWidth addition
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed May 8, 2023
1 parent 31bad5d commit 5c8e7cb
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

0 comments on commit 5c8e7cb

Please sign in to comment.