From 619ae4fa5c6ac3aaae694084e2e7021a7f37d752 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 18 Oct 2024 16:00:42 +0100 Subject: [PATCH] Adjust position of Zoom Out inserter and dropdown --- .../src/components/block-list/zoom-out-separator.js | 2 +- packages/block-editor/src/components/block-tools/style.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-list/zoom-out-separator.js b/packages/block-editor/src/components/block-list/zoom-out-separator.js index 9fa1c88ceafe48..ae616f3ec39a6c 100644 --- a/packages/block-editor/src/components/block-list/zoom-out-separator.js +++ b/packages/block-editor/src/components/block-list/zoom-out-separator.js @@ -88,7 +88,7 @@ export function ZoomOutSeparator( { initial={ { height: 0 } } animate={ { // Use a height equal to that of the zoom out frame size. - height: 'calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)', + height: 'calc(1.5 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)', } } exit={ { height: 0 } } transition={ { diff --git a/packages/block-editor/src/components/block-tools/style.scss b/packages/block-editor/src/components/block-tools/style.scss index 676e7b2f6ef5d5..88ab6e2337d618 100644 --- a/packages/block-editor/src/components/block-tools/style.scss +++ b/packages/block-editor/src/components/block-tools/style.scss @@ -269,3 +269,7 @@ top: 50%; left: 50%; } + +.components-button.block-editor-button-pattern-inserter__button.block-editor-block-tools__zoom-out-mode-inserter-button { + top: -1px; +}