Skip to content

Commit

Permalink
Revert "Hide the crop controls in content only mode"
Browse files Browse the repository at this point in the history
This reverts commit 2cf4c3c.
  • Loading branch information
talldan committed Jan 17, 2024
1 parent 2cf4c3c commit 733eeb8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,7 @@ export default function Image( {
}, [ isSelected ] );

const canEditImage = id && naturalWidth && naturalHeight && imageEditing;
const allowCrop =
! multiImageSelection &&
canEditImage &&
! isEditingImage &&
hasNonContentControls;
const allowCrop = ! multiImageSelection && canEditImage && ! isEditingImage;

function switchToCover() {
replaceBlocks(
Expand Down

0 comments on commit 733eeb8

Please sign in to comment.