Skip to content

Commit

Permalink
WEB: Fix maintainers grid not displaying correctly (GH41438) (pandas-…
Browse files Browse the repository at this point in the history
  • Loading branch information
calvh authored May 14, 2021
1 parent afcf180 commit 4048227
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
40 changes: 16 additions & 24 deletions web/pandas/about/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,22 @@ If you want to support pandas development, you can find information in the [dona

## Maintainers

<div class="row maintainers">
{% for row in maintainers.people | batch(6, "") %}
<div class="card-group maintainers">
{% for person in row %}
{% if person %}
<div class="card">
<img class="card-img-top" alt="" src="{{ person.avatar_url }}"/>
<div class="card-body">
<h6 class="card-title">
{% if person.blog %}
<a href="{{ person.blog }}">
{{ person.name or person.login }}
</a>
{% else %}
{{ person.name or person.login }}
{% endif %}
</h6>
<p class="card-text small"><a href="{{ person.html_url }}">{{ person.login }}</a></p>
</div>
</div>
{% else %}
<div class="card border-0"></div>
{% endif %}
{% endfor %}
<div class="card-group maintainers">
{% for person in maintainers.people %}
<div class="card">
<img class="card-img-top" alt="" src="{{ person.avatar_url }}"/>
<div class="card-body">
<h6 class="card-title">
{% if person.blog %}
<a href="{{ person.blog }}">
{{ person.name or person.login }}
</a>
{% else %}
{{ person.name or person.login }}
{% endif %}
</h6>
<p class="card-text small"><a href="{{ person.html_url }}">{{ person.login }}</a></p>
</div>
</div>
{% endfor %}
</div>
Expand Down
6 changes: 6 additions & 0 deletions web/pandas/static/css/pandas.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ a.navbar-brand img {
div.card {
margin: 0 0 .2em .2em !important;
}
@media (min-width: 576px) {
.card-group.maintainers div.card {
min-width: 10rem;
max-width: 10rem;
}
}
div.card .card-title {
font-weight: 500;
color: #130654;
Expand Down

0 comments on commit 4048227

Please sign in to comment.