Skip to content

Commit

Permalink
Inserter: Fix the in-between inserter on nested blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 28, 2018
1 parent c7a7583 commit 2d1cda1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit 2d1cda1

Please sign in to comment.