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 committed Dec 19, 2023
1 parent 5ee2660 commit aa84ec2
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 aa84ec2

Please sign in to comment.