Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix: Empty Mini Cart Contents view in editor is not vertically centered on WP 6.0 #6379

Merged
merged 8 commits into from
May 6, 2022
8 changes: 6 additions & 2 deletions assets/js/blocks/mini-cart/mini-cart-contents/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down