Pledge List: Fix alignment of contributors

Fixes #66
This commit is contained in:
Kelly Dwan 2019-10-30 14:48:59 -05:00
parent 55bf7e3839
commit 1fad6f0eaa
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 15 additions and 2 deletions

View file

@ -91,7 +91,7 @@ get_header(); ?>
<h2><?php esc_html_e( 'Contributors', 'wporg' ); ?></h2>
<?php if ( ! empty( $contributors ) ) : ?>
<ul class="pledge-contributors has-contrib-names">
<ul class="pledge-contributors has-contrib-names <?php echo ( 2 === count( $contributors ) ) ? 'has-2-contribs' : ''; ?>">
<?php foreach ( $contributors as $contributor ) : ?>
<li class="pledge-contributor">
<span class="pledge-contributor__avatar">