From 09a898e88ec3e85854196aa90b26b11e94ae1031 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 12 Apr 2022 18:02:16 +0300 Subject: [PATCH] fix: Improve the layout of the photo pages (#3807) --- ietf/static/css/ietf.scss | 8 ++++++-- ietf/templates/group/all_photos.html | 5 +++-- ietf/templates/group/group_photos.html | 5 +++-- ietf/templates/person/photo.html | 7 ++++--- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ietf/static/css/ietf.scss b/ietf/static/css/ietf.scss index b46dd5b68..5c8742767 100644 --- a/ietf/static/css/ietf.scss +++ b/ietf/static/css/ietf.scss @@ -151,7 +151,7 @@ table tbody.meta { // Style the photo cards .photo { - width: 13em; + width: 12em; .card-img-top { object-fit: cover; @@ -160,7 +160,11 @@ table tbody.meta { .photo-placeholder { height: 15em; - font-size: 12em; + + .bi { + font-size: 10em; + color: $gray-300; + } } } diff --git a/ietf/templates/group/all_photos.html b/ietf/templates/group/all_photos.html index b73163ba2..8d8512e75 100644 --- a/ietf/templates/group/all_photos.html +++ b/ietf/templates/group/all_photos.html @@ -10,10 +10,11 @@ {% for letter in alphabet_blocks %}

{{ letter.grouper }}

{% regroup letter.list by person as person_groups %} -
+ {# keep in sync with group_photos.html #} +
{% for person_with_groups in person_groups %}
{% include "person/photo.html" with person=person_with_groups.grouper groups=person_with_groups.list%}
{% endfor %}
{% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/ietf/templates/group/group_photos.html b/ietf/templates/group/group_photos.html index c12f1673d..beb42ddc1 100644 --- a/ietf/templates/group/group_photos.html +++ b/ietf/templates/group/group_photos.html @@ -11,7 +11,8 @@

{{ role_name.grouper }}{{ role_name.list|pluralize }}

{% regroup role_name.list by person as person_groups %} -
+ {# keep in sync with all_photos.html #} +
{% for person_with_groups in person_groups %}
{% include "person/photo.html" with person=person_with_groups.grouper groups=person_with_groups.list %} @@ -20,4 +21,4 @@
{% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/ietf/templates/person/photo.html b/ietf/templates/person/photo.html index b4986e2e1..4cea8ccb1 100644 --- a/ietf/templates/person/photo.html +++ b/ietf/templates/person/photo.html @@ -11,19 +11,20 @@ alt="Photo of {{ person.name }}"> {% else %}
- +
{% endif %} {% if name or email %}{% endif %}
-

+

{% person_link person with_email=False %}

{% for role in groups %} {{ role.group.acronym }} {% endfor %}
-
\ No newline at end of file +