Hiding empty detail rows on scene page.

This commit is contained in:
DebaucheryLibrarian 2024-06-04 03:27:54 +02:00
parent e592647080
commit 7fe3f63a5c
2 changed files with 13 additions and 4 deletions

View File

@ -5,7 +5,7 @@
> >
<img <img
v-if="entity.hasLogo" v-if="entity.hasLogo"
:src="entity.isIndependent ? `/logos/${entity.slug}/entity.png` : `/logos/${entity.parent?.slug}/${entity.slug}.png`" :src="entity.type === 'network' || entity.isIndependent ? `/logos/${entity.slug}/network.png` : `/logos/${entity.parent?.slug}/${entity.slug}.png`"
:alt="entity.name" :alt="entity.name"
class="logo" class="logo"
> >

View File

@ -148,7 +148,10 @@
</div> </div>
<div class="info"> <div class="info">
<ul class="actors nolist"> <ul
v-if="scene.actors.length > 0"
class="actors nolist"
>
<li <li
v-for="actor in scene.actors" v-for="actor in scene.actors"
:key="`actor-${actor.id}`" :key="`actor-${actor.id}`"
@ -158,7 +161,10 @@
</li> </li>
</ul> </ul>
<ul class="tags nolist"> <ul
v-if="scene.tags.length > 0"
class="tags nolist"
>
<li <li
v-for="tag in scene.tags" v-for="tag in scene.tags"
:key="`tag-${tag.id}`" :key="`tag-${tag.id}`"
@ -204,7 +210,10 @@
<p class="description">{{ scene.description }}</p> <p class="description">{{ scene.description }}</p>
</div> </div>
<div class="section details"> <div
v-if="scene.duration || scene.directors.length > 0 || scene.shootId"
class="section details"
>
<div <div
v-if="scene.duration" v-if="scene.duration"
class="detail" class="detail"