feat: restore manual sync button — safe at ~50 units/sync

This commit is contained in:
Gan, Jimmy
2026-06-24 02:59:16 +08:00
parent d87c2aba44
commit 63d42594d0
+8 -1
View File
@@ -207,12 +207,19 @@
<span class="text-[10px] px-2 py-0.5 rounded font-semibold uppercase tracking-widest" style="background:var(--bg-tertiary);color:var(--text-muted)">text feed</span> <span class="text-[10px] px-2 py-0.5 rounded font-semibold uppercase tracking-widest" style="background:var(--bg-tertiary);color:var(--text-muted)">text feed</span>
</div> </div>
<div class="flex items-center space-x-3"> <div class="flex items-center space-x-3">
<button onclick={syncSubscriptions} disabled={isSyncing}
class="px-3 py-1.5 text-xs font-bold rounded-lg transition"
style="background:var(--accent);color:white">
{isSyncing ? 'Syncing...' : 'Sync'}
</button>
<button onclick={toggleTheme} <button onclick={toggleTheme}
class="text-sm px-2 py-1 rounded transition" style="color:var(--text-muted)" class="text-sm px-2 py-1 rounded transition" style="color:var(--text-muted)"
title="Toggle theme"> title="Toggle theme">
{theme === 'dark' ? '☀' : '☾'} {theme === 'dark' ? '☀' : '☾'}
</button> </button>
<span class="text-[10px]" style="color:var(--text-muted)" id="sync-timer"></span> {#if !isSyncing}
<span class="text-[10px]" style="color:var(--text-muted)" id="sync-timer"></span>
{/if}
</div> </div>
</header> </header>