Wp-calypso: Broken Layout Selector: Missing Fonts, Off-canvas Preview in Layout Selector/Editor

Created on 1 May 2020  Â·  3Comments  Â·  Source: Automattic/wp-calypso

To reproduce …

  1. Create a new WP.com site as a new user
  2. Click Add New Page at /pages to bring up the layout selector
  3. Examine the layout selector
  4. Notice the missing theme fonts in the layout selector
  5. Examine the two layouts in the screenshot below and notice that the blocks in the layout extend beyond the canvas
  6. Select one of the layouts and notice the same issue as item 5 in the editor
  7. Compare with the front-end view where the theme fonts and horizontal display appears to be working correctly.

image

image

cc @kjellr I believe the editor views are a theme issue.

[Goal] Page Templates [Type] Bug

Most helpful comment

Just tested this issue against a Gutenberg Edge site running v8.0.0 and it looks like upgrading Gutenberg resolves some of this (though for some reason the page title isn't centred correctly):

| Services | Contact |
| -- | -- |
| image | image |

I know Gutenberg has recently changed a number of classnames in the editor, so that might affect things in the page layout previews, too.

All 3 comments

Examine the two layouts in the screenshot below and notice that the blocks in the layout extend beyond the canvas

This appears to be a problem with all Varia themes. I think it's just the Jetpack Layout Grid block, whenever its placed inside of a full-width Group. cc @allancole

Removing this from the group container fixes the problem:

group

^ I opened a PR that will fix the theme portion of this, but I'm still a little unsure why this is occurring — I can't reproduce this locally using these themes + layouts, and the rule I'm overriding there come straight from Gutenberg, not from the theme. So I'd suggest we investigate a little more.

If we want to clean this up quickly, we can try removing those Layout Grid Blocks from inside of group blocks in the layouts we offer.

Just tested this issue against a Gutenberg Edge site running v8.0.0 and it looks like upgrading Gutenberg resolves some of this (though for some reason the page title isn't centred correctly):

| Services | Contact |
| -- | -- |
| image | image |

I know Gutenberg has recently changed a number of classnames in the editor, so that might affect things in the page layout previews, too.

Was this page helpful?
0 / 5 - 0 ratings