Show how many tags or accounts are hidden in infobar.

This commit is contained in:
Marcel Hellkamp 2024-12-19 14:58:22 +01:00
parent 3d09ccc9a2
commit 2d593a304a

View File

@ -39,7 +39,7 @@ function sep(index: number, length: number, sep: string, lastsep: string) {
<template v-for="(t, index) in tags" :key="index">
<code>#{{ t }}</code>{{ sep(index, tags.length, ", ", tagsHidden ? ", " : " or ") }}
</template>
<span v-if="tagsHidden"> and more</span>
<span v-if="tagsHidden"> and {{tagsHidden}} more</span>
</template>
<template v-if="accounts.length">
<template v-if="tags.length"> as well as posts </template>
@ -47,7 +47,7 @@ function sep(index: number, length: number, sep: string, lastsep: string) {
<template v-for="(acc, index) in accounts" :key="index">
<code>@{{ acc }}</code>{{ sep(index, accounts.length, ", ", accountsHidden ? ", " : " or ") }}
</template>
<span v-if="accountsHidden"> and more</span>
<span v-if="accountsHidden"> and {{accountsHidden}} more</span>
</template>
</div>
</template>