Code cleanup

This commit is contained in:
Björn Fromme
2018-09-22 12:10:08 +02:00
parent 7d9ae43ee1
commit bfc123ee12
@@ -111,18 +111,11 @@
<f:section name="PictureTag"> <f:section name="PictureTag">
<picture class="searchresult-item__image"> <picture class="searchresult-item__image">
<source media="(max-width: 768px)" srcset="{f:uri.image( <source media="(max-width: 768px)" srcset="{f:uri.image(image: image, width: '220', height: '130c-100')} 220w"/>
image: image, width: '220', height: '130c-100' <source media="(max-width: 1200px)" srcset="{f:uri.image(image: image, width: '280', height: '220c-100')} 280w"/>
)} 220w"/> <source media="(min-width: 1201px)" srcset="{f:uri.image(image: image, width: '260', height: '200c-100')} 260w"/>
<source media="(max-width: 1200px)" srcset="{f:uri.image( <img class="scale" src="{f:uri.image(image: image, width: '260', height: '200c-100')}"
image: image, width: '280', height: '220c-100' title="{image.title}" alt="{image.alternative}">
)} 280w"/>
<source media="(min-width: 1201px)" srcset="{f:uri.image(
image: image, width: '260', height: '200c-100'
)} 260w"/>
<img class="scale" src="{f:uri.image(
image: image, width: '260', height: '200c-100'
)}" title="{image.title}" alt="{image.alternative}">
</picture> </picture>
</f:section> </f:section>