Skip to content

Commit

Permalink
Disable resizing when viewport is small and wide-aligned (#57041)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored and artemiomorales committed Jan 4, 2024
1 parent 4ff70f6 commit 4ab2f5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/image/image.js
Expand Up @@ -196,7 +196,8 @@ export default function Image( {
const isResizable =
allowResize &&
hasNonContentControls &&
! ( isWideAligned && isLargeViewport );
! isWideAligned &&
isLargeViewport;
const imageSizeOptions = imageSizes
.filter(
( { slug } ) => image?.media_details?.sizes?.[ slug ]?.source_url
Expand Down

0 comments on commit 4ab2f5b

Please sign in to comment.