Pledge listings: Update the aspect ratio of image

Fixes #301
This commit is contained in:
Kelly Dwan 2024-09-10 15:22:28 -04:00
parent 33645a3397
commit e5b3f8518e
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ if ( is_search() ) {
<div class="wp-block-group">
<!-- wp:group {"style":{"border":{"radius":"2px"},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"var:preset|spacing|20","right":"var:preset|spacing|20"}}},"backgroundColor":"light-grey-2","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-light-grey-2-background-color has-background" style="border-radius:2px;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)">
<!-- wp:post-featured-image {"aspectRatio":"4/3","width":"275px","scale":"contain"} /-->
<!-- wp:post-featured-image {"aspectRatio":"16/9","width":"275px","scale":"contain"} /-->
</div>
<!-- /wp:group -->

View file

@ -33,7 +33,7 @@ function render_single_pledge( $contributor_post, $has_profile_data ) {
<div class="wp-block-group my-pledges__pledge">
<!-- wp:group {"style":{"border":{"radius":"2px"},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"var:preset|spacing|20","right":"var:preset|spacing|20"}}},"backgroundColor":"light-grey-2","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-light-grey-2-background-color has-background" style="border-radius:2px;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)">
<!-- wp:post-featured-image {"aspectRatio":"4/3","width":"275px","scale":"contain"} /-->
<!-- wp:post-featured-image {"aspectRatio":"16/9","width":"275px","scale":"contain"} /-->
</div>
<!-- /wp:group -->