Skip to content

Commit

Permalink
Compensate on full-wide.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed May 12, 2020
1 parent 44e945f commit 01b2cc4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -600,3 +600,12 @@
.is-dragging-components-draggable .components-tooltip {
display: none;
}

// The editor-styles.scss file adds 10px padding all around the canvas, to ensure blocks aren't edge to edge on mobile.
// For full-wide blocks, we compensate for these 10px.
.block-editor-block-list__layout.is-root-container {
> .wp-block[data-align="full"] {
margin-left: -10px;
margin-right: -10px;
}
}

0 comments on commit 01b2cc4

Please sign in to comment.