fix(admin): show a heartbeat icon for Health #45
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user