Skip to content

Commit 7b695ab

Browse files
committed
fix: update the editor breakpoints with wordpress 7.0 changes
1 parent f74f44e commit 7b695ab

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/block-css/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,11 @@ function createCssEdit( selector, rule, value, device = 'desktop', vendorPrefixe
535535
}
536536
css = `\n${ selector } {\n\t${ css }\n}`
537537

538-
// The Block Editor has these fixed breakpoints.
539-
const tabletBreakpoint = 781
540-
const mobileBreakpoint = 361
538+
// Match the Block Editor's fixed preview widths
539+
// In WordPress 7.0, the preview widths have changed,
540+
// see https://github.com/WordPress/gutenberg/pull/74339
541+
const tabletBreakpoint = 782
542+
const mobileBreakpoint = 480
541543

542544
const mediaQuery = getMediaQuery( device, tabletBreakpoint, mobileBreakpoint )
543545
if ( mediaQuery ) {

0 commit comments

Comments
 (0)