diff --git a/packages/block-library/src/image/editor.scss b/packages/block-library/src/image/editor.scss index de021dc85372e..f80100c787001 100644 --- a/packages/block-library/src/image/editor.scss +++ b/packages/block-library/src/image/editor.scss @@ -90,46 +90,31 @@ figure.wp-block-image:not(.wp-block) { } } -.wp-block-image__zoom-control { - border: $border-width solid $gray-900; - border-radius: $radius-block-ui; - background-color: $white; - padding: $grid-unit-10; - line-height: 1; - width: 100%; - max-width: 280px; - display: flex; - flex-direction: row; - align-items: center; - - // Place as a stacked toolbar. - position: sticky; - top: $grid-unit-60 + $grid-unit-15; - z-index: z-index(".block-editor-block-list__block-popover"); - float: left; +.wp-block-image__zoom { + .components-popover__content { + overflow: visible; + } .components-range-control { flex: 1; - margin-right: $grid-unit-15; - margin-left: $grid-unit-15; } .components-base-control__field { display: flex; margin-bottom: 0; } +} - .wp-block-image__aspect-ratio { - height: $grid-unit-60 - $border-width - $border-width; - margin-top: -$grid-unit-10; - margin-bottom: -$grid-unit-10; - display: flex; - align-items: center; +.wp-block-image__aspect-ratio { + height: $grid-unit-60 - $border-width - $border-width; + margin-top: -$grid-unit-10; + margin-bottom: -$grid-unit-10; + display: flex; + align-items: center; - .components-button { - width: $button-size; - padding-left: 0; - padding-right: 0; - } + .components-button { + width: $button-size; + padding-left: 0; + padding-right: 0; } } diff --git a/packages/block-library/src/image/image-editor.js b/packages/block-library/src/image/image-editor.js index 45b7e81880b53..571ef88f92083 100644 --- a/packages/block-library/src/image/image-editor.js +++ b/packages/block-library/src/image/image-editor.js @@ -12,7 +12,6 @@ import classnames from 'classnames'; import { BlockControls } from '@wordpress/block-editor'; import { useState } from '@wordpress/element'; import { - Icon, search, check, rotateRight as rotateRightIcon, @@ -21,11 +20,13 @@ import { import { ToolbarGroup, ToolbarButton, + __experimentalToolbarItem as ToolbarItem, Spinner, RangeControl, DropdownMenu, MenuGroup, MenuItem, + Dropdown, } from '@wordpress/components'; import { __, sprintf } from '@wordpress/i18n'; import { useDispatch } from '@wordpress/data'; @@ -282,26 +283,6 @@ export default function ImageEditor( { return ( <> - { ! inProgress && ( -
- - - -
- ) }
}
+ + ( + + ) } + renderContent={ () => ( + + ) } + /> + + { ( toggleProps ) => ( + + ) } + +