Skip to content
Merged
Changes from all commits
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
Image block: fix image size at wide and full width
  • Loading branch information
t-hamano committed Jul 31, 2023
commit 38496843ac63e7d9af857361eddcac3ea7fa2a12
4 changes: 2 additions & 2 deletions packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,9 @@ export default function Image( {
className={ borderProps.className }
style={ {
width:
( width && height ) || aspectRatio ? '100%' : 'inherit',
( width && height ) || aspectRatio ? '100%' : undefined,
height:
( width && height ) || aspectRatio ? '100%' : 'inherit',
( width && height ) || aspectRatio ? '100%' : undefined,
objectFit: scale,
...borderProps.style,
} }
Expand Down