Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix some CSS used for exercise images in overview

Roland Geider3faa362aa80c
diff --git a/wger/exercises/templates/equipment/overview.html b/wger/exercises/templates/equipment/overview.html
index 356e421cb..be7238729 100644
--- a/wger/exercises/templates/equipment/overview.html
+++ b/wger/exercises/templates/equipment/overview.html
@@ -52,7 +52,7 @@ $(function() {
{% if exercise.language in exercise_languages %}
<a href="{{ exercise.get_absolute_url }}" class="list-group-item">
<div class="media">
- <div style="width:60px;height:60px;" class="pull-left">
+ <div style="width:60px;height:60px;" class="media-left">
{% if exercise.main_image %}
<img alt="{{ exercise.name }}"
@@ -66,7 +66,7 @@ $(function() {
src="{% static 'images/icons/image-placeholder.svg' %}">
{% endif %}
</div>
- <div class="media-body">
+ <div class="media-body" style="position: absolute; top: 10px; left: 100px;">
<h4 class="media-heading">{{ exercise.name }}</h4>
<span class="text-muted">
{% trans exercise.category.name %}
diff --git a/wger/exercises/templates/exercise/overview.html b/wger/exercises/templates/exercise/overview.html
index ad5ddc28d..8a0234808 100644
--- a/wger/exercises/templates/exercise/overview.html
+++ b/wger/exercises/templates/exercise/overview.html
@@ -70,7 +70,7 @@ $(document).ready(function() {
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
</div>
<div class="media">
- <div style="width:60px;height:60px;" class="pull-left">
+ <div style="width:60px;height:60px;" class="media-left">
{% if exercise.main_image %}
<img alt="{{ exercise.name }}"
@@ -84,7 +84,7 @@ $(document).ready(function() {
src="{% static 'images/icons/image-placeholder.svg' %}">
{% endif %}
</div>
- <div class="media-body">
+ <div class="media-body" style="position: absolute; top: 10px; left: 100px;">
<h4 class="media-heading">{{ exercise.name }}</h4>
<span class="text-muted">
{% for equipment in exercise.equipment.all %}