Skip to content

Commit

Permalink
Image Block: Move the inheriting of max height and width to editor st…
Browse files Browse the repository at this point in the history
…yles
  • Loading branch information
himanshupathak95 committed Jan 16, 2025
1 parent 77e104b commit 4e0f8ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 0 additions & 5 deletions packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@
border-radius: 0;
}
}

.components-resizable-box__container {
max-width: inherit !important;
max-height: inherit !important;
}
}

// Variations
Expand Down

0 comments on commit 4e0f8ad

Please sign in to comment.