Commit 2e41251d authored by Thomas Löffler's avatar Thomas Löffler

Remove unused variables and add maxWidth for every variant

parent 87a890aa
......@@ -297,12 +297,12 @@
</f:section>
<f:section name="pictureset">
<picture>
<source srcset="{f:uri.image(image: file, width: dimensions.width, height: dimensions.height, maxWidth: maxWidth.full, cropVariant: 'default')}" media="(min-width: 1200px)">
<source srcset="{f:uri.image(image: file, width: dimensions.width, height: dimensions.height, maxWidth: maxWidth.desktop, cropVariant: 'default')}" media="(min-width: 992px)">
<source srcset="{f:uri.image(image: file, width: dimensions.width, height: dimensions.height, maxWidth: maxWidth.tablet, cropVariant: 'tablet')}" media="(min-width: 768px)">
<source srcset="{f:uri.image(image: file, width: dimensions.width, height: dimensions.height, maxWidth: maxWidth.phone, cropVariant: 'mobile')}" media="(max-width: 767px)">
<source srcset="{f:uri.image(image: file, maxWidth: 1200, cropVariant: 'default')}" media="(min-width: 1200px)">
<source srcset="{f:uri.image(image: file, maxWidth: 1200, cropVariant: 'default')}" media="(min-width: 992px)">
<source srcset="{f:uri.image(image: file, maxWidth: 992, cropVariant: 'tablet')}" media="(min-width: 768px)">
<source srcset="{f:uri.image(image: file, maxWidth: 768, cropVariant: 'mobile')}" media="(max-width: 767px)">
<!---Fallback--->
<f:image class="img-fluid" image="{file}" width="{dimensions.width}" height="{dimensions.height}" maxWidth="{maxWidth.full}" cropVariant="{default}" alt="{file.alternative}" title="{file.title}" />
<f:image class="img-fluid" image="{file}" maxWidth="1200" cropVariant="{default}" alt="{file.alternative}" title="{file.title}" />
</picture>
</f:section>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment