From 4e0f8ad1565ae828d75e6c7a0e19460e46667bb5 Mon Sep 17 00:00:00 2001 From: himanshupathak95 Date: Thu, 16 Jan 2025 13:56:09 +0530 Subject: [PATCH] Image Block: Move the inheriting of max height and width to editor styles --- packages/block-library/src/image/editor.scss | 3 +++ packages/block-library/src/image/style.scss | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/block-library/src/image/editor.scss b/packages/block-library/src/image/editor.scss index a7386205d9108a..f27432819f2fc8 100644 --- a/packages/block-library/src/image/editor.scss +++ b/packages/block-library/src/image/editor.scss @@ -59,6 +59,9 @@ figure.wp-block-image:not(.wp-block) { width: inherit; height: inherit; } + + max-width: inherit !important; + max-height: inherit !important; } .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { diff --git a/packages/block-library/src/image/style.scss b/packages/block-library/src/image/style.scss index 9ba2cae4f3b88b..117045f7dce627 100644 --- a/packages/block-library/src/image/style.scss +++ b/packages/block-library/src/image/style.scss @@ -123,11 +123,6 @@ border-radius: 0; } } - - .components-resizable-box__container { - max-width: inherit !important; - max-height: inherit !important; - } } // Variations