Compare commits

...

2 Commits

Author SHA1 Message Date
d29e761efb fix admin layout showing inaccessible routes
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 16s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 13s
2025-06-24 00:27:18 +02:00
018e239c35 fix top margin 2025-06-24 00:25:32 +02:00
2 changed files with 25 additions and 22 deletions

View File

@ -75,7 +75,7 @@
<p>🔪 {kill.killer!.username}{kill.killed.username}</p> <p>🔪 {kill.killer!.username}{kill.killed.username}</p>
{/each} {/each}
{#if team.memberTwo.dead} {#if team.memberTwo.dead}
<p class="mt-2 first:mt-initial">{team.memberTwo.dead.message}</p> <p class="mt-2 first:mt-0">{team.memberTwo.dead.message}</p>
{/if} {/if}
</div> </div>
{/if} {/if}
@ -97,7 +97,7 @@
<p>🔪 {kill.killer!.username}{kill.killed.username}</p> <p>🔪 {kill.killer!.username}{kill.killed.username}</p>
{/each} {/each}
{#if team.memberTwo.dead} {#if team.memberTwo.dead}
<p class="mt-2 first:mt-initial">{team.memberTwo.dead.message}</p> <p class="mt-2 first:mt-0">{team.memberTwo.dead.message}</p>
{/if} {/if}
</div> </div>
{/if} {/if}

View File

@ -92,7 +92,9 @@ const adminTabs = [
} }
<div class="divider mx-1 my-1"></div> <div class="divider mx-1 my-1"></div>
{ {
adminTabs.map((tab) => ( adminTabs.map(
(tab) =>
tab.enabled && (
<li> <li>
<a href={tab.href}> <a href={tab.href}>
<Icon name={tab.icon} /> <Icon name={tab.icon} />
@ -111,7 +113,8 @@ const adminTabs = [
</ul> </ul>
)} )}
</li> </li>
)) )
)
} }
{ {
Astro.slots.has('actions') && ( Astro.slots.has('actions') && (