diff --git a/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/index.php b/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/index.php index 15901a52..78c7ad52 100644 --- a/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/index.php +++ b/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/index.php @@ -85,7 +85,7 @@ function render( $attributes, $content, $block ) { function get_site_screenshot_src( $post, $type = 'desktop' ) { $screenshot_url = false; $media_id = get_post_meta( $post->ID, 'screenshot-' . $type, true ); - $cache_key = '20221208'; // To break out of cached image. + $cache_key = '20230913'; // To break out of cached image. $size = 'screenshot-' . $type; $all_sizes = wp_get_registered_image_subsizes(); diff --git a/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/style.scss b/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/style.scss index d07f7e50..84d0f4a6 100644 --- a/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/style.scss +++ b/source/wp-content/themes/wporg-showcase-2022/src/site-screenshot/style.scss @@ -53,4 +53,8 @@ width: 100%; vertical-align: middle; } + + &.is-size-desktop img { + aspect-ratio: 535 / 300; + } }