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
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"
class="logo"
>

View File

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