Skip to content

Commit

Permalink
Image: Allow authors to select image sizes from dropdown (#39580)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Mar 18, 2022
1 parent e3f1d99 commit ddef998
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ export default function Image( {
);
const multiSelectedClientIds = getMultiSelectedBlockClientIds();
return {
image: id && isSelected ? getMedia( id ) : null,
image:
id && isSelected
? getMedia( id, { context: 'view' } )
: null,
multiImageSelection:
multiSelectedClientIds.length &&
multiSelectedClientIds.every(
Expand Down

0 comments on commit ddef998

Please sign in to comment.