Skip to content

Patterns have a different viewport width than the default in core #683

@richtabor

Description

@richtabor

Describe the bug

The default viewport width for patterns from the directory is a different value than the default in core.

The visual below is of the same pattern, one from the directory and the other duplicated from it. This test is with using the Assembler theme, but this occurs for any pattern served from the directory.

The scale of patterns served from the directory are zoomed in further, with a smaller viewport width, than the same patterns from on the site.

CleanShot 2024-04-23 at 10 38 25

To Reproduce
Steps to reproduce the behavior:

  1. Add any of the curated patterns from the editor.
  2. Create a pattern from the same exact pattern.
  3. Compare the previews of both patterns.

Expected behavior
The patterns should have the same default scaling, regardless of source.

Additional visual

Here's an example using a core pattern that is already served to WordPress sites:

CleanShot 2024-04-23 at 10 57 04
CleanShot 2024-04-23 at 10 56 08

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions