mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-03-13 11:18:28 +01:00
Add percentage to achievement
This commit is contained in:
parent
e4e50a7d27
commit
5e5facfbfd
1 changed files with 2 additions and 3 deletions
|
@ -246,9 +246,8 @@
|
|||
<p class="font-semibold {category.id === active ? 'text-black' : 'text-white'}">{category.name}</p>
|
||||
<div class="flex">
|
||||
<p class="flex-1 {category.id === active ? 'text-gray-900' : 'text-gray-400'}">
|
||||
{category.finished}
|
||||
{$t('achievement.of')}
|
||||
{category.total}
|
||||
{category.finished}/{category.total}
|
||||
({((category.finished / category.total) * 100).toFixed(0)}%)
|
||||
</p>
|
||||
<p class={category.id === active ? 'text-gray-900' : 'text-gray-400'}>
|
||||
{category.primogem}
|
||||
|
|
Loading…
Add table
Reference in a new issue