Fix thumbnail size in HTML before rendering to avoid page jumps

pull/51/head
Romain 8 years ago
parent 23ce9b1e7d
commit e414ad7a74

@ -62,8 +62,8 @@
data-download-url="{{{download this}}}"> data-download-url="{{{download this}}}">
<a href="{{{download this}}}"> <a href="{{{download this}}}">
<img src="{{urls.thumb}}" <img src="{{urls.thumb}}"
width="{{../gallery.thumbsSize}}" width="{{@root.gallery.thumbSize}}"
height="{{../gallery.thumbSize}}" height="{{@root.gallery.thumbSize}}"
alt="{{filename}}" /> alt="{{filename}}" />
</a> </a>
<img class="video-overlay" src="public/play.png" /> <img class="video-overlay" src="public/play.png" />
@ -74,8 +74,8 @@
data-download-url="{{{download this}}}"> data-download-url="{{{download this}}}">
<a href="{{{download this}}}"> <a href="{{{download this}}}">
<img src="{{urls.thumb}}" <img src="{{urls.thumb}}"
width="{{../gallery.thumbSize}}" width="{{@root.gallery.thumbSize}}"
height="{{../gallery.thumbSize}}" height="{{@root.gallery.thumbSize}}"
alt="{{filename}}" /> alt="{{filename}}" />
</a> </a>
</li> </li>

@ -40,8 +40,8 @@
data-download-url="{{urls.download}}"> data-download-url="{{urls.download}}">
<a href="{{urls.download}}"> <a href="{{urls.download}}">
<img src="{{urls.thumb}}" <img src="{{urls.thumb}}"
width="{{size}}" width="{{@root.gallery.thumbSize}}"
height="{{size}}" height="{{@root.gallery.thumbSize}}"
alt="{{name}}" /> alt="{{name}}" />
</a> </a>
<img class="video-overlay" src="public/play.png" /> <img class="video-overlay" src="public/play.png" />
@ -52,8 +52,8 @@
data-download-url="{{urls.download}}"> data-download-url="{{urls.download}}">
<a href="{{urls.download}}"> <a href="{{urls.download}}">
<img src="{{urls.thumb}}" <img src="{{urls.thumb}}"
width="{{size}}" width="{{@root.gallery.thumbSize}}"
height="{{size}}" height="{{@root.gallery.thumbSize}}"
alt="{{name}}" /> alt="{{name}}" />
</a> </a>
</li> </li>

@ -58,8 +58,8 @@
data-download-url="{{{download this}}}"> data-download-url="{{{download this}}}">
<a href="{{{download this}}}"> <a href="{{{download this}}}">
<img src="{{urls.thumb}}" <img src="{{urls.thumb}}"
width="{{../gallery.thumbsSize}}" width="{{@root.gallery.thumbSize}}"
height="{{../gallery.thumbSize}}" height="{{@root.gallery.thumbSize}}"
alt="{{filename}}" /> alt="{{filename}}" />
</a> </a>
<img class="video-overlay" src="public/play.png" /> <img class="video-overlay" src="public/play.png" />
@ -70,8 +70,8 @@
data-download-url="{{{download this}}}"> data-download-url="{{{download this}}}">
<a href="{{{download this}}}"> <a href="{{{download this}}}">
<img src="{{urls.thumb}}" <img src="{{urls.thumb}}"
width="{{../gallery.thumbSize}}" width="{{@root.gallery.thumbSize}}"
height="{{../gallery.thumbSize}}" height="{{@root.gallery.thumbSize}}"
alt="{{filename}}" /> alt="{{filename}}" />
</a> </a>
</li> </li>

Loading…
Cancel
Save