Skip to content

Commit

Permalink
Better position sticky toolbar on floats (#11810)
Browse files Browse the repository at this point in the history
The toolbar for floats, beyond the mobile breakpoint, was a little offset. This PR fixes it.
  • Loading branch information
jasmussen authored and mtias committed Nov 13, 2018
1 parent 4cc3ac0 commit d521f25
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/editor/src/components/block-list/style.scss
Expand Up @@ -318,6 +318,14 @@
right: 0;
}

// Position the sticky toolbar correctly beyond the mobile breakpoint.
@include break-small() {
&[data-align="right"] .editor-block-contextual-toolbar,
&[data-align="left"] .editor-block-contextual-toolbar {
top: $block-padding;
}
}

// Left
&[data-align="left"] {
// This is in the editor only; the image should be floated on the frontend.
Expand Down

0 comments on commit d521f25

Please sign in to comment.