Fixed actor tags with just one actor showing 'and'.
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
<span
|
||||
v-if="tag.actors.length > 0"
|
||||
v-tooltip="{
|
||||
content: `For ${tag.actors.slice(0, -1).map((tagActor) => tagActor.name).join(', ')}${tag.actors.length > 0 ? ` and ${tag.actors.at(-1).name}` : ''}`,
|
||||
content: `${tag.name} for ${new Intl.ListFormat('en', { style: 'long', type: 'conjunction' }).format(tag.actors.map((actor) => actor.name))}`,
|
||||
triggers: ['hover', 'click'],
|
||||
}"
|
||||
class="tag-actors"
|
||||
|
||||
Reference in New Issue
Block a user