Change const color if c6+

Close #297
pull/1/head
Made Baruna 2022-08-26 16:44:37 +07:00
parent 82968f6697
commit c71acf4fb2
1 changed files with 5 additions and 2 deletions

View File

@ -45,11 +45,14 @@
/> />
</div> </div>
<div <div
class="absolute top-0 right-0 bg-black bg-opacity-75 rounded-full flex items-center shadow-md" class="absolute top-0 right-0 bg-black bg-opacity-75 rounded-full flex items-center shadow-md {constellation &&
Math.max(0, constellation.default + constellation.wish + constellation.manual - 1) >= 6
? 'text-legendary-from'
: 'text-white'}"
style="padding: 4px; margin: -10px;" style="padding: 4px; margin: -10px;"
> >
{#if constellation} {#if constellation}
<span class="mx-1 text-white text-xs font-semibold"> <span class="mx-1 text-xs font-semibold">
C{Math.max(0, constellation.default + constellation.wish + constellation.manual - 1)} C{Math.max(0, constellation.default + constellation.wish + constellation.manual - 1)}
</span> </span>
{/if} {/if}