From fae0121b17ee9d37c952316e4fbbb829b34732fe Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Wed, 18 Oct 2023 23:58:27 +0900 Subject: [PATCH] Preferences modal: fix the position of sticky heading when blocks are hidden --- packages/edit-post/src/components/block-manager/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-post/src/components/block-manager/style.scss b/packages/edit-post/src/components/block-manager/style.scss index c62e5fea93202..e1b92c7c4da43 100644 --- a/packages/edit-post/src/components/block-manager/style.scss +++ b/packages/edit-post/src/components/block-manager/style.scss @@ -18,12 +18,12 @@ text-align: center; position: sticky; // When sticking, tuck the top border beneath the modal header border - top: -1px; + top: ($grid-unit-05 + 1) * -1; z-index: z-index(".edit-post-block-manager__disabled-blocks-count"); // Stick the category titles to the bottom ~ .edit-post-block-manager__results .edit-post-block-manager__category-title { - top: 35px; + top: $grid-unit-40 - 1; } .is-link { margin-left: 12px;