--- a/src/pyams_portal/portlets/image/skin/image.pt Fri Oct 04 19:15:53 2019 +0200
+++ b/src/pyams_portal/portlets/image/skin/image.pt Fri Oct 18 16:50:44 2019 +0200
@@ -1,4 +1,5 @@
-<tal:if condition="view.settings.image">
+<div class="wrapper-image"
+ tal:condition="view.settings.image">
<picture
tal:define="image view.settings.image;
image_url tales:absolute_url(image);
@@ -46,7 +47,6 @@
tal:condition="not:lg_width"
srcset="/--static--/pyams_default_theme/img/dot.png" />
</tal:var>
- <img style="width: 100%;"
- tal:attributes="src image_url" />
+ <img tal:attributes="src image_url" />
</picture>
-</tal:if>
+</div>
--- a/src/pyams_portal/portlets/image/zmi/preview.pt Fri Oct 04 19:15:53 2019 +0200
+++ b/src/pyams_portal/portlets/image/zmi/preview.pt Fri Oct 18 16:50:44 2019 +0200
@@ -1,6 +1,6 @@
<tal:var define="settings view.settings">
<tal:if condition="settings.image">
- <a class="fancybox" data-toggle
+ <a class="wrapper-image fancybox" data-toggle
data-ams-fancybox-type="image"
tal:define="image settings.image;
image_url tales:absolute_url(image);
@@ -51,8 +51,7 @@
tal:condition="not:lg_width"
srcset="/--static--/pyams_default_theme/img/dot.png" />
</tal:var>
- <img style="width: 100%;"
- tal:attributes="src image_url" />
+ <img tal:attributes="src image_url" />
</picture>
</a>
</tal:if>