Skip to content

Commit

Permalink
Block theme: Load a smaller image for pattern previews
Browse files Browse the repository at this point in the history
800px is a good balance for providing 2x resolution across screen sizes, without serving needlessly large images to all users.
  • Loading branch information
ryelle committed Apr 16, 2024
1 parent e537af2 commit f08eeb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$url = add_query_arg(
array(
'scale' => 2,
'w' => 1100,
'w' => 800,
'vpw' => $viewport_width,
'vph' => 300, // Smaller than the vast majority of patterns to avoid whitespace.
'screen_height' => 3600, // Max height of a screenshot.
Expand Down

0 comments on commit f08eeb5

Please sign in to comment.