Skip to content

Commit

Permalink
Spacer: Adjust to inherit display and flex properties
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshbhutkar committed Jan 28, 2025
1 parent 2abe6fa commit 45f867b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/block-library/src/spacer/editor.scss
Original file line number Diff line number Diff line change
@@ -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: "";
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 45f867b

Please sign in to comment.