Skip to content

Commit

Permalink
Image Block: fix Aspect Ratio button position (#62776)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
  • Loading branch information
4 people authored and gutenbergplugin committed Jun 25, 2024
1 parent 349a36d commit 00633da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export default function AspectRatioDropdown( { toggleProps } ) {
label={ __( 'Aspect Ratio' ) }
popoverProps={ POPOVER_PROPS }
toggleProps={ toggleProps }
className="wp-block-image__aspect-ratio"
>
{ ( { onClose } ) => (
<>
Expand Down
13 changes: 0 additions & 13 deletions packages/block-library/src/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,6 @@ figure.wp-block-image:not(.wp-block) {
}
}

.wp-block-image__aspect-ratio {
height: $grid-unit-60 - $border-width - $border-width;
margin-bottom: -$grid-unit-10;
display: flex;
align-items: center;

.components-button {
width: $button-size;
padding-left: 0;
padding-right: 0;
}
}

.wp-block-image__toolbar_content_textarea {
// Corresponds to the size of the textarea in the block inspector.
width: 250px;
Expand Down

0 comments on commit 00633da

Please sign in to comment.