fix(admin): show a heartbeat icon for Health #45

Merged
eleith merged 1 commits from fix/admin-health-icon into main 2026-11-21 14:16:03 +00:00
2 changed files with 20 additions and 1 deletions

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
---
'@goto/web': patch
'@goto/cli': patch
'@goto/worker': patch
---
Use a heartbeat icon for the Health link in the admin navigation.
@@ -1,6 +1,7 @@
<script lang="ts">
import { page } from '$app/state';
import { goto } from '$app/navigation';
import IconHeartbeat from 'virtual:icons/ph/heartbeat';
import { authClient } from '#lib/auth-client.js';
import ThemeToggle from '../ThemeToggle.svelte';
@@ -53,9 +54,14 @@
>{title}</a
>
<a
class="ui-button health-link"
href="/admin/health"
aria-current={page.url.pathname === '/admin/health' ? 'page' : undefined}>Health</a
aria-label="Health"
title="Health"
aria-current={page.url.pathname === '/admin/health' ? 'page' : undefined}
>
<IconHeartbeat aria-hidden="true" focusable="false" />
</a>
</nav>
<div class="nav-actions">
<ThemeToggle />
@@ -113,6 +119,12 @@
text-decoration: none;
}
.health-link {
width: var(--control-min-height);
padding: 0;
font-size: 1.25rem;
}
.nav-actions {
display: flex;
flex-wrap: wrap;