Skip to content

Commit

Permalink
Fix: Admin menu collapses for 960px width but editor doesn't (#19970)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Jan 31, 2020
1 parent 63d56f1 commit 5945e48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
left: $admin-sidebar-width-collapsed;
}

@include break-large() {
@media (min-width: #{ ($break-large + 1) }) {
left: $admin-sidebar-width;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
getEditedPostContent,
insertBlock,
switchEditorModeTo,
pressKeyWithModifier,
} from '@wordpress/e2e-test-utils';

describe( 'InnerBlocks Template Sync', () => {
Expand Down Expand Up @@ -45,6 +46,8 @@ describe( 'InnerBlocks Template Sync', () => {
);
// Press "Enter" inside the Code Editor to fire the `onChange` event for the new value.
await page.click( '.editor-post-text-editor' );
await pressKeyWithModifier( 'primary', 'A' );
await page.keyboard.press( 'ArrowRight' );
await page.keyboard.press( 'Enter' );
await switchEditorModeTo( 'Visual' );
};
Expand Down

0 comments on commit 5945e48

Please sign in to comment.