change(ServerFinder): デカい数字は概数表示に

This commit is contained in:
kakkokari-gtyih 2024-04-05 01:59:22 +09:00
parent adf5531836
commit ed9c5d6b9b

View File

@ -20,11 +20,11 @@
<div class="grid grid-cols-3 text-center"> <div class="grid grid-cols-3 text-center">
<dl> <dl>
<dt class="text-xs opacity-90">{{ $t('_servers._statistics.notes') }}</dt> <dt class="text-xs opacity-90">{{ $t('_servers._statistics.notes') }}</dt>
<dd class="font-bold text-accent-600">{{ instance.stats?.originalNotesCount.toLocaleString() }}</dd> <dd :title="$n(instance.stats?.originalNotesCount)" class="font-bold text-accent-600">{{ instance.stats?.originalNotesCount ? $n(instance.stats.originalNotesCount, instance.stats.originalNotesCount >= 100000 ? { notation: 'compact', maximumFractionDigits: 1 } : { notation: 'standard' }) : '' }}</dd>
</dl> </dl>
<dl> <dl>
<dt class="text-xs opacity-90">{{ $t('_servers._statistics.users') }}</dt> <dt class="text-xs opacity-90">{{ $t('_servers._statistics.users') }}</dt>
<dd class="font-bold text-accent-600">{{ instance.stats?.originalUsersCount.toLocaleString() }}</dd> <dd :title="$n(instance.stats?.originalUsersCount)" class="font-bold text-accent-600">{{ instance.stats?.originalUsersCount ? $n(instance.stats.originalUsersCount, instance.stats.originalUsersCount >= 100000 ? { notation: 'compact', maximumFractionDigits: 1 } : { notation: 'standard' }) : '' }}</dd>
</dl> </dl>
<dl> <dl>
<dt class="text-xs opacity-90">{{ $t('_servers._registerAcceptance.title') }}</dt> <dt class="text-xs opacity-90">{{ $t('_servers._registerAcceptance.title') }}</dt>