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:
@@ -68,7 +68,6 @@ body {
|
||||
|
||||
.thin_border {
|
||||
border: 1px solid black;
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
.mayan-page-wrapper-interactive {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user