Skip to content

Commit 627f74f

Browse files
committed
Fix image max_width
1 parent a238767 commit 627f74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% assign max_width = include.max_width | default:"" %}
44

55
{% if src != "" %}
6-
<img src="{{ src }}" alt="{{ alt }}" class="img-fluid" {% if max_width != "" %}style="max-width: {{ max_width }};"{% endif %}>
6+
<img src="{{ src }}" alt="{{ alt }}" class="img-fluid" {% if max_width != "" %}style="max-width: {{ max_width }}; width: 100%;"{% endif %}>
77
{% else %}
88
<p class="error">Error: Missing 'src' attribute in include 'image.html'.</p>
99
{% endif %}

0 commit comments

Comments
 (0)