We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a238767 commit 627f74fCopy full SHA for 627f74f
_includes/image.html
@@ -3,7 +3,7 @@
3
{% assign max_width = include.max_width | default:"" %}
4
5
{% if src != "" %}
6
- <img src="{{ src }}" alt="{{ alt }}" class="img-fluid" {% if max_width != "" %}style="max-width: {{ max_width }};"{% endif %}>
+ <img src="{{ src }}" alt="{{ alt }}" class="img-fluid" {% if max_width != "" %}style="max-width: {{ max_width }}; width: 100%;"{% endif %}>
7
{% else %}
8
<p class="error">Error: Missing 'src' attribute in include 'image.html'.</p>
9
{% endif %}
0 commit comments