Update dashboard.html

Centered the child photo within the card
This commit is contained in:
Paul Calabro 2019-10-04 08:29:08 -07:00 committed by Christopher Charbonneau Wells
parent 74f089fcec
commit 326a6f448c
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
{% for object in objects %} {% for object in objects %}
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-2 mb-4"> <div class="col-lg-3 col-md-4 col-sm-6 col-xs-2 mb-4">
<div class="card"> <div class="card">
<a href="{% url 'core:child' object.slug %}"> <a class="text-center" href="{% url 'core:child' object.slug %}">
{% if object.picture %} {% if object.picture %}
{% thumbnail object.picture 300x300 upscale crop as thumb %} {% thumbnail object.picture 300x300 upscale crop as thumb %}
<img src="{{ thumb.url }}" class="child-photo img-fluid" /> <img src="{{ thumb.url }}" class="child-photo img-fluid" />