From 6c1cdbdaabcc86f62a37254c41c7024034e8fee6 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Tue, 20 Dec 2022 16:33:35 -0600 Subject: [PATCH] Fix nav list alignment (#46682) * Fix nav list appender alignment * Fix icon width * Remove unused CSS --- .../src/components/list-view/style.scss | 13 +------------ .../src/components/off-canvas-editor/style.scss | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/packages/block-editor/src/components/list-view/style.scss b/packages/block-editor/src/components/list-view/style.scss index 6bcb7667b36b8..61c6f80dab608 100644 --- a/packages/block-editor/src/components/list-view/style.scss +++ b/packages/block-editor/src/components/list-view/style.scss @@ -176,9 +176,8 @@ } .block-editor-block-icon { - align-self: flex-start; margin-right: $grid-unit-10; - width: $icon-size; + flex: 0 0 $icon-size; } .block-editor-list-view-block__menu-cell, @@ -319,16 +318,6 @@ .block-editor-list-view-block-select-button__lock { line-height: 0; - width: 16px; - min-width: 24px; - height: 16px; - margin-left: auto; - padding: 0; - vertical-align: middle; - display: inline-flex; - justify-content: center; - align-items: center; - overflow: hidden; } } diff --git a/packages/block-editor/src/components/off-canvas-editor/style.scss b/packages/block-editor/src/components/off-canvas-editor/style.scss index 9cfb098c7e259..e65646a318d3d 100644 --- a/packages/block-editor/src/components/off-canvas-editor/style.scss +++ b/packages/block-editor/src/components/off-canvas-editor/style.scss @@ -1,7 +1,7 @@ .offcanvas-editor__appender .block-editor-inserter__toggle { background-color: #1e1e1e; color: #fff; - margin: $grid-unit-10 0 0 28px; + margin: $grid-unit-10 0 0 24px; border-radius: 2px; height: 24px; min-width: 24px;