From 45f867ba280aad2db9f441395c834df46b81b8db Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Mon, 27 Jan 2025 13:20:26 +0530 Subject: [PATCH] Spacer: Adjust to inherit `display` and `flex` properties --- packages/block-library/src/spacer/editor.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/block-library/src/spacer/editor.scss b/packages/block-library/src/spacer/editor.scss index e0c700795c0870..c4bad1635ef405 100644 --- a/packages/block-library/src/spacer/editor.scss +++ b/packages/block-library/src/spacer/editor.scss @@ -1,4 +1,7 @@ .block-editor-block-list__block[data-type="core/spacer"] { + display: inherit; + flex-direction: inherit; + // This generates an invisible field above the spacer, which makes its minimum clickable-to-select height larger. &::before { content: ""; @@ -45,4 +48,9 @@ // Important is used to have higher specificity than the inline style set by re-resizable library. height: 100% !important; } + + // Allows the resizable container to occupy all remaining vertical space. + &:not(.resize-horizontal) { + flex-grow: inherit; + } }