From 04e54804252b2066f38d7a0cde37efefcedaa2c0 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:52:35 +0100 Subject: [PATCH] Change rendered avatar size (#318) * Change rendered avatar size Reduces the standard fetched avatar size, dependant on the format. * Reverse image size --- themes/wporg-5ftf-2024/src/pledge-contributors/render.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/themes/wporg-5ftf-2024/src/pledge-contributors/render.php b/themes/wporg-5ftf-2024/src/pledge-contributors/render.php index df40c963..5d1afa1c 100644 --- a/themes/wporg-5ftf-2024/src/pledge-contributors/render.php +++ b/themes/wporg-5ftf-2024/src/pledge-contributors/render.php @@ -16,9 +16,13 @@ // Initialize count to zero for untruncated view. $count_more = 0; +// Set avatar size at smallest usage in px. +$avatar_size = 70; + if ( $is_truncated ) { $count_more = count( $contributors ) - TRUNCATED_MAX; $contributors = array_splice( $contributors, 0, TRUNCATED_MAX ); + $avatar_size = 30; } ?> @@ -31,7 +35,7 @@