Rich Tabor
Rich Tabor
What would it take to add viewport width support to patterns? I'm finding this more and more important, as I explore updating the curated patterns on within the patterns directory....
@ryelle what do we need to do to have this here, and https://github.com/WordPress/pattern-directory/issues/683?
While it'd be nice to have to declare viewport width for patterns (https://github.com/WordPress/pattern-directory/issues/614), we need a consistent default first.
Looks like 1200 ([source](https://github.com/WordPress/gutenberg/blob/006107338d284b9d88f3ecf901dad4e41eca86dc/packages/block-editor/src/components/block-preview/index.js#L27)).
Is this something we can fix?
We're about to kick up Twenty Twenty Five, which will likely use the directory to house patterns—but I consider this a blocker, as the patterns don't look great coming in...
This tests well (especially in Chromium browsers). I did note the same find that @draganescu pointed out.
It's close. There's still a bit of a flash of the site logo/WP SVG (odd few frames) as the editor header is moving out, particularly when you're exiting edit mode....
> I'm failing to understand the flash of the W svg: Any help there would be appreciated. I shortened the clip to see it here: https://github.com/WordPress/gutenberg/assets/1813435/2fca6556-787d-412b-80ff-99359093a427
> Are there any blockers? It's a pretty big change; I'd like more input from @WordPress/gutenberg-design especially.