Compare commits

...

3 Commits

Author SHA1 Message Date
56deba780d fix admin dashboard team edit
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 23s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 18s
2025-06-09 23:02:49 +02:00
5a8203d122 fix stretching team member heads 2025-06-09 22:34:22 +02:00
aacc815676 update comment position 2025-06-09 21:54:51 +02:00
3 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,10 @@ export const signup = {
input: z.object({ input: z.object({
firstname: z.string().trim().min(2), firstname: z.string().trim().min(2),
lastname: z.string().trim().min(2), lastname: z.string().trim().min(2),
// this will be inaccurate as it is evaluated only once
birthday: z birthday: z
.string() .string()
.date() .date()
// this will be inaccurate as it is evaluated only once
.max(Date.now() - 1000 * 60 * 60 * 24 * 365 * 6), .max(Date.now() - 1000 * 60 * 60 * 24 * 365 * 6),
phone: z.string().trim().nullable(), phone: z.string().trim().nullable(),
username: z.string().trim(), username: z.string().trim(),

View File

@ -78,6 +78,6 @@
} }
] ]
]} ]}
onSubmit={addTeam} onSubmit={deleteTeam}
bind:open={editPopupOpen} bind:open={editPopupOpen}
/> />

View File

@ -69,7 +69,7 @@
{#if team.memberOne} {#if team.memberOne}
<div class="flex items-center gap-x-2"> <div class="flex items-center gap-x-2">
<img <img
class="w-4 h-4 pixelated" class="h-4 pixelated"
src={team.memberOne.dead ? Skeleton.src : `https://mc-heads.net/head/${team.memberOne.username}/8`} src={team.memberOne.dead ? Skeleton.src : `https://mc-heads.net/head/${team.memberOne.username}/8`}
alt="head" alt="head"
/> />
@ -83,7 +83,7 @@
{#if team.memberTwo} {#if team.memberTwo}
<div class="flex items-center gap-x-2"> <div class="flex items-center gap-x-2">
<img <img
class="w-4 h-4 pixelated" class="h-4 pixelated"
src={team.memberTwo.dead ? Skeleton.src : `https://mc-heads.net/head/${team.memberTwo.username}/8`} src={team.memberTwo.dead ? Skeleton.src : `https://mc-heads.net/head/${team.memberTwo.username}/8`}
alt="head" alt="head"
/> />