Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't distort images

Roland Geiderb2ebc4fe0aae
diff --git a/wger/nutrition/templates/ingredient/overview.html b/wger/nutrition/templates/ingredient/overview.html
index 8da57edb1..82e4658f1 100644
--- a/wger/nutrition/templates/ingredient/overview.html
+++ b/wger/nutrition/templates/ingredient/overview.html
@@ -22,7 +22,7 @@
<img src="{{ ingredient.image.image.url }}"
class="img-fluid"
alt="{{ ingredient.name }}"
- style="height: 40px; width: 40px; border-radius: 50%;">
+ style="height: 40px; width: 40px; border-radius: 50%; object-fit: cover;">
{% else %}
<i class="fas fa-camera fa-sx" style="text-align:center; width: 40px;"></i>
{% endif %}
@@ -48,7 +48,7 @@
{% block sidebar %}
<h4>{% translate "Search" %}</h4>
<div id="react-ingredient-search"></div>
-
+
{% endblock %}