Properly iterating through aliases in actor profile.

This commit is contained in:
DebaucheryLibrarian 2021-02-13 00:30:49 +01:00
parent 24ea7e0c5c
commit fbbbd99d3d
1 changed files with 11 additions and 1 deletions

View File

@ -19,7 +19,13 @@
class="bio-item"
>
<dfn class="bio-label">Also known as</dfn>
<span>{{ actor.aliases.join(', ') }}</span>
<span class="bio-value">
<span
v-for="alias in actor.aliases"
:key="`alias-${alias.id}`"
class="alias"
>{{ alias.name }}</span>
</span>
</li>
<Social
@ -643,6 +649,10 @@ export default {
text-transform: capitalize;
}
.alias:not(:last-child)::after {
content: ',\00a0';
}
.scraped {
color: var(--lighten-weak);
font-size: .8rem;