Skip to content

Commit

Permalink
Fix: Admin menu collapses for 960px width but editor doesn't
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jan 31, 2020
1 parent 0194925 commit 6cd3916
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 @@ -37,6 +38,8 @@ describe( 'InnerBlocks Template Sync', () => {
}, paragraphToAdd, blockSlug );
// 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 6cd3916

Please sign in to comment.