diff --git a/packages/base-styles/_z-index.scss b/packages/base-styles/_z-index.scss index d7c7842bdfd248..28f3a14ac1d950 100644 --- a/packages/base-styles/_z-index.scss +++ b/packages/base-styles/_z-index.scss @@ -183,6 +183,7 @@ $z-layers: ( ".edit-site-layout__header": 2, ".edit-site-layout__canvas-container": 2, ".edit-site-layout__sidebar": 1, + ".edit-site-layout__canvas-container.is-resizing::after": 100, ); @function z-index( $key ) { diff --git a/packages/edit-site/src/components/block-editor/resize-handle.js b/packages/edit-site/src/components/block-editor/resize-handle.js index d49bfdf4447b66..199ca09869cf92 100644 --- a/packages/edit-site/src/components/block-editor/resize-handle.js +++ b/packages/edit-site/src/components/block-editor/resize-handle.js @@ -7,7 +7,11 @@ import { VisuallyHidden } from '@wordpress/components'; const DELTA_DISTANCE = 20; // The distance to resize per keydown in pixels. -export default function ResizeHandle( { direction, resizeWidthBy } ) { +export default function ResizeHandle( { + variation = 'default', + direction, + resizeWidthBy, +} ) { function handleKeyDown( event ) { const { keyCode } = event; @@ -27,7 +31,7 @@ export default function ResizeHandle( { direction, resizeWidthBy } ) { return ( <> + + + { showLabels && ( + +
+ { getTitle() } +
+
+ { entityConfig?.label } +
+
+ ) } + + + { showEditButton && ( - - - { showLabels && ( - -
- { getTitle() } -
-
- { entityConfig?.label } -
-
) } - - - { showEditButton && ( - - ) } - { isMobileViewport && ! isMobileCanvasVisible && ( - - ) } - - ); -} + { isMobileViewport && ! isMobileCanvasVisible && ( + + ) } + + ); + } +); export default SiteHub;