From a0da2b470b5668ceab09049508364c5d0c39ca82 Mon Sep 17 00:00:00 2001 From: Tung Du Date: Thu, 5 May 2022 16:12:37 +0700 Subject: [PATCH] fix empty mini cart vertical align issue on WP 6.0 --- assets/js/blocks/mini-cart/mini-cart-contents/editor.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/blocks/mini-cart/mini-cart-contents/editor.scss b/assets/js/blocks/mini-cart/mini-cart-contents/editor.scss index c445da95090..e9b7ded74dd 100644 --- a/assets/js/blocks/mini-cart/mini-cart-contents/editor.scss +++ b/assets/js/blocks/mini-cart/mini-cart-contents/editor.scss @@ -59,15 +59,19 @@ padding: 0; > .block-editor-inner-blocks { - max-height: 100vh; - overflow-y: auto; box-sizing: border-box; + display: flex; + flex-direction: column; + height: 100vh; + justify-content: center; + overflow-y: auto; padding: $gap-largest $gap $gap; } // Temporary fix after the appender button was positioned absolute // See https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/5742#issuecomment-1032804168 .block-list-appender { + margin-top: $gap; position: relative; }