Fixed movie scene photo query, added caps.

This commit is contained in:
2024-08-23 02:17:59 +02:00
parent b3a3562bb8
commit 8e473d5e3e
2 changed files with 32 additions and 9 deletions

View File

@@ -28,12 +28,12 @@
</div>
<div
v-if="movie.photos.length > 0"
v-if="movie.photos.length > 0 || movie.caps.length > 0"
class="album"
:class="{ single: movie.photos.length === 1 }"
:class="{ single: (movie.photos.length + movie.caps.length) === 1 }"
>
<div
v-for="photo in movie.photos"
v-for="photo in movie.photos.concat(movie.caps)"
:key="`photo-${photo.id}`"
class="photo-container"
>