Fixed actor description logos.

This commit is contained in:
2020-06-28 04:22:19 +02:00
parent f4029f0ef7
commit 41d7d2fa34
4 changed files with 40 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
>
<div class="actor-header">
<h2 class="header-name">
<span v-if="actor.network">{{ actor.name }} ({{ actor.network.name }})</span>
<span v-if="actor.entity">{{ actor.name }} ({{ actor.entity.name }})</span>
<span v-else="">{{ actor.name }}</span>
<Gender
@@ -248,20 +248,20 @@
>
<p
v-for="description in actor.descriptions"
:key="`description-${description.network.id}`"
:key="`description-${description.entity.id}`"
class="description"
>
{{ description.text }}
<router-link :to="{ name: 'network', params: { networkSlug: description.network.slug } }">
<router-link :to="`/${description.entity.type}/${description.entity.slug}`">
<img
v-if="description.site"
:src="`/img/logos/${description.network.slug}/thumbs/${description.site.slug}.png`"
v-if="description.entity.type === 'network'"
:src="`/img/logos/${description.entity.slug}/thumbs/network.png`"
class="description-logo"
>
<img
v-else
:src="`/img/logos/${description.network.slug}/thumbs/network.png`"
:src="`/img/logos/${description.entity.parent.slug}/thumbs/${description.entity.slug}.png`"
class="description-logo"
>
</router-link>
@@ -633,12 +633,6 @@ export default {
background: var(--background-dim);
}
.releases {
flex-grow: 1;
border-top: solid 1px var(--crease);
padding: 1rem;
}
.profile-social {
display: none;
}