Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserter: Fix the in-between inserter on nested blocks #5282

Merged
merged 1 commit into from
Feb 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions editor/components/block-list/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ export class BlockListBlock extends Component {
<BlockInsertionPoint
uid={ block.uid }
rootUID={ rootUID }
layout={ layout }
/>
) }
{ showSideInserter && (
Expand Down
2 changes: 1 addition & 1 deletion editor/components/block-list/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class BlockListLayout extends Component {

return (
<BlockSelectionClearer className={ classes }>
{ !! blockUIDs.length && <BlockInsertionPoint /> }
{ !! blockUIDs.length && <BlockInsertionPoint rootUID={ rootUID } layout={ defaultLayout } /> }
{ map( blockUIDs, ( uid, blockIndex ) => (
<BlockListBlock
key={ 'block-' + uid }
Expand Down
8 changes: 5 additions & 3 deletions editor/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,11 @@
left: 0;
right: 0;

@include break-small {
left: $block-mover-padding-visible;
right: $block-mover-padding-visible;
.editor-block-list__insertion-point-inserter:before {
@include break-small {
left: $block-mover-padding-visible;
right: $block-mover-padding-visible;
}
}
}

Expand Down