From aa84ec2a0f1372880ac2442c8b9475678f353f59 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:06:42 +0900 Subject: [PATCH] Disable resizing when viewport is small and wide-aligned (#57041) --- packages/block-library/src/image/image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index b74079b2b8b79d..866bea022fdcf1 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -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