Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix image not inheriting correct size
  • Loading branch information
talldan committed Apr 18, 2023
commit 7bef33fb5308e9904e54f3b7921e0cce8b91522b
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function ResizableAlignmentControls( {
const contentStyle = useMemo( () => {
if ( ! snappedAlignment ) {
// By default the content takes up the full width of the resizable box.
return { width: '100%' };
return { width: 'inherit' };
}

// Calculate the positioning of the snapped image.
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,6 @@ export default function Image( {
className={ borderProps.className }
style={ {
...borderProps.style,
width: 'inherit',
height: 'auto',
} }
/>
);
Expand Down