trackers: lock icon after owner-only tracker names (header dropdown, mobile menu, home, /trackers, /start, error suggestions) from one locked flag in #lib/projects; drop the private: subtitle prefix
All checks were successful
Deploy production / deploy (push) Successful in 1m7s

This commit is contained in:
2026-10-25 16:22:25 +00:00
parent eff5a24985
commit 676ac2ad64
8 changed files with 95 additions and 20 deletions

View File

@@ -4,6 +4,7 @@
import { ago, bytes, duration, timerStatus, type Container } from '#lib/home.js';
import { linkIcon } from '#lib/link-icons.js';
import TrackerIcon from '#lib/components/TrackerIcon.svelte';
import PrivateLock from '#lib/components/PrivateLock.svelte';
import { visibleTrackers } from '#lib/projects.js';
let { data, form } = $props();
@@ -307,7 +308,7 @@
<div class="ttile">
<a class="stretched" href={t.href} title={t.subtitle}>
<TrackerIcon name={t.name} class="t-icon size-8" />
<span class="tname">{t.name}</span>
<span class="tname">{t.name}</span>{#if t.locked}<PrivateLock tight />{/if}
</a>
<span class="tchips">
{#each tileChildren(t) as c (c.name)}
@@ -330,7 +331,7 @@
{:else}
<a class="ttile" href={t.href} title={t.subtitle}>
<TrackerIcon name={t.name} class="t-icon size-8" />
<span class="tname">{t.name}</span>
<span class="tname">{t.name}</span>{#if t.locked}<PrivateLock tight />{/if}
</a>
{/if}
</li>