From f08eeb5c53d25d94826bc2ca23efe91f71abc6cf Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 16 Apr 2024 14:13:30 -0400 Subject: [PATCH] Block theme: Load a smaller image for pattern previews 800px is a good balance for providing 2x resolution across screen sizes, without serving needlessly large images to all users. --- .../src/blocks/pattern-thumbnail/render.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/wp-content/themes/wporg-pattern-directory-2024/src/blocks/pattern-thumbnail/render.php b/public_html/wp-content/themes/wporg-pattern-directory-2024/src/blocks/pattern-thumbnail/render.php index 4f86dcc4..dd53fc7b 100644 --- a/public_html/wp-content/themes/wporg-pattern-directory-2024/src/blocks/pattern-thumbnail/render.php +++ b/public_html/wp-content/themes/wporg-pattern-directory-2024/src/blocks/pattern-thumbnail/render.php @@ -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.