Skip to content

Commit

Permalink
Appender: fix initial position (WordPress#66711)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ellatrix <[email protected]>
  • Loading branch information
3 people authored Nov 4, 2024
1 parent d2b48e7 commit 7bf1d96
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-editor/src/components/block-tools/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
}
}

// The black plus that shows up on the right side of an empty paragraph block,
// or the initial appender that exists only on empty documents.
// The black plus that shows up on the right side of an empty paragraph block.
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter {
position: absolute;
top: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@
}
}

// The initial appender that exists only on empty documents.
.block-editor-default-block-appender .block-editor-inserter {
position: absolute;
top: 0;
right: 0;
line-height: 0;

&:disabled {
display: none;
}
}

/**
* Fixed position appender (right bottom corner).
Expand Down

0 comments on commit 7bf1d96

Please sign in to comment.