Fixed movie tile lazy loading and SFW image.

This commit is contained in:
DebaucheryLibrarian
2020-12-27 23:10:11 +01:00
parent 1d1c9eae83
commit 31af1ca9e6
4 changed files with 23 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
<img
v-if="release.poster"
:src="sfw ? `/img/${release.poster.sfw.thumbnail}` : `/media/${release.poster.thumbnail}`"
:style="{ 'background-image': sfw ? `/img/${release.poster.sfw.lazy}` : `/media/${release.poster.lazy}` }"
:alt="release.title"
class="thumbnail"
loading="lazy"
@@ -27,6 +28,7 @@
v-for="cover in release.covers"
:key="cover.id"
:src="sfw ? `/img/${cover.sfw.thumbnail}` : `/media/${cover.thumbnail}`"
:style="{ 'background-image': sfw ? `/img/${cover.sfw.lazy}` : `/media/${cover.lazy}` }"
:alt="release.title"
class="thumbnail cover"
loading="lazy"