show user heads in team table
All checks were successful
deploy / build-and-deploy (push) Successful in 16s
All checks were successful
deploy / build-and-deploy (push) Successful in 16s
This commit is contained in:
parent
a8a6424098
commit
fc156c386b
@ -1,6 +1,5 @@
|
||||
<script lang="ts">
|
||||
import Skeleton from '@assets/img/steve.png';
|
||||
import Steve from '@assets/img/steve.png';
|
||||
import type { GetDeathsRes } from '@db/schema/death.ts';
|
||||
import { type ActionReturnType, actions } from 'astro:actions';
|
||||
|
||||
@ -40,7 +39,7 @@
|
||||
{#if team.memberOne.id}
|
||||
{@const dead = deaths.findIndex((d) => d.deadUserId === team.memberOne.id)}
|
||||
<div class="flex items-center gap-x-2">
|
||||
<img class="w-4 h-4 pixelated" src={dead === -1 ? Steve.src : Skeleton.src} alt="head" />
|
||||
<img class="w-4 h-4 pixelated" src={dead === -1 ? `https://mc-heads.net/head/${team.memberOne.username}/8` : Skeleton.src} alt="head" />
|
||||
<span class="text-xs sm:text-md" class:line-through={dead !== -1}>{team.memberOne.username}</span>
|
||||
</div>
|
||||
{/if}
|
||||
@ -49,7 +48,7 @@
|
||||
{#if team.memberTwo.id}
|
||||
{@const dead = deaths.findIndex((d) => d.deadUserId === team.memberTwo.id)}
|
||||
<div class="flex items-center gap-x-2">
|
||||
<img class="w-4 h-4 pixelated" src={dead === -1 ? Steve.src : Skeleton.src} alt="head" />
|
||||
<img class="w-4 h-4 pixelated" src={dead === -1 ? `https://mc-heads.net/head/${team.memberTwo.username}/8` : Skeleton.src} alt="head" />
|
||||
<span class="text-xs sm:text-md" class:line-through={dead !== -1}>{team.memberTwo.username}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
Loading…
x
Reference in New Issue
Block a user