Fixed actor tags with just one actor showing 'and'.

This commit is contained in:
2026-07-06 17:44:35 +02:00
parent dbd269c43b
commit 0e81334c5f

View File

@@ -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"