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 a14f15a commit f05792aCopy full SHA for f05792a
src/Templates/default/html/image.html.twig
@@ -2,7 +2,7 @@
2
Overridden so we can control the path to the image based on our copying logic.
3
See CopyImagesListener.
4
#}
5
-{% set wrap_image_with_browser = 'with-browser' in imageNode.options.class ?? '' %}
+{% set wrap_image_with_browser = 'with-browser' in (imageNode.options.class ?? '') %}
6
{% if wrap_image_with_browser %}<div class="with-browser">{% endif %}
7
<img src="{{ imageNode.value }}" {% for key, value in imageNode.options %}{{ key }}="{{ value }}" {% endfor %}/>
8
{% if wrap_image_with_browser %}</div>{% endif %}
0 commit comments