Skip to content

Commit

Permalink
Invert class/style application and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Aug 11, 2023
1 parent 38b48cc commit 761979e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default function VisualEditor( { styles } ) {
__unstableContentRef={ ref }
className={ classnames( 'edit-post-visual-editor', {
'is-template-mode': isTemplateMode,
'is-isolated': isToBeIframed,
'has-inline-canvas': ! isToBeIframed,
} ) }
>
<motion.div
Expand Down
4 changes: 3 additions & 1 deletion packages/edit-post/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
position: relative;
display: flex;
flex-flow: column;
&.is-isolated {
// In the iframed canvas this keeps extra scrollbars from appearing (when block toolbars overflow). In the
// legacy (non-iframed) canvas, overflow must not be hidden in order to maintain support for sticky positioning.
&:not(.has-inline-canvas) {
overflow: hidden;
}

Expand Down

0 comments on commit 761979e

Please sign in to comment.