Move image container height control to the document image template.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-04-03 02:53:57 -04:00
parent 9e8cd4d3d7
commit 045056dc46
3 changed files with 3 additions and 2 deletions
@@ -8,7 +8,7 @@
class="thin_border {{ image_classes }}"
data-url="{{ instance.get_api_image_url }}?width={{ image_width }}&height={{ image_height }}&zoom={{ image_zoom }}&rotation={{ image_rotation }}"
src="#"
style="{% if display_full_width %}width: 100%{% endif %};"
style="{% if display_full_width %}width: 100%;{% endif %} {% if image_container_height %}max-height: {{ image_container_height }}; {% endif %}"
/>
</div>
@@ -11,7 +11,9 @@
>
{% with 'lazy-load' as image_classes %}
{% with 'true' as display_full_width %}
{% with '200px' as image_container_height %}
{% include 'documents/forms/widgets/document_page_image.html' %}
{% endwith %}
{% endwith %}
{% endwith %}
</a>