Feat: Recent Tab (Unread State) + Bug Fixes

This commit is contained in:
Youwes09
2026-06-12 17:27:08 -05:00
parent 31a19687ce
commit 9dad1fb329
40 changed files with 668 additions and 668 deletions
+7 -16
View File
@@ -19,8 +19,10 @@
}
let {
tab, historySearch, updatesSearch, historyConfirmClear, hasHistory, updatesLoading,
onTabChange, onHistorySearchChange, onUpdatesSearchChange, onHistoryClear, onRefreshUpdates,
tab, historySearch, updatesSearch, historyConfirmClear, hasHistory,
updatesLoading,
onTabChange, onHistorySearchChange, onUpdatesSearchChange,
onHistoryClear, onRefreshUpdates,
}: Props = $props()
</script>
@@ -57,7 +59,7 @@
class="icon-btn"
onclick={onRefreshUpdates}
disabled={updatesLoading}
title="Refresh updates"
title="Reload update list"
>
{#if updatesLoading}
<CircleNotch size={14} weight="light" class="anim-spin" />
@@ -79,19 +81,6 @@
{/if}
</div>
<button
class="icon-btn"
onclick={onRefreshUpdates}
disabled={updatesLoading}
title="Refresh library"
>
{#if updatesLoading}
<CircleNotch size={14} weight="light" class="anim-spin" />
{:else}
<ArrowsClockwise size={14} weight="bold" />
{/if}
</button>
{#if hasHistory}
<button
class="clear-btn"
@@ -155,6 +144,8 @@
}
.icon-btn:hover:not(:disabled) { color: var(--text-primary); border-color: var(--border-strong); }
.icon-btn:disabled { opacity: 0.45; cursor: default; }
.icon-btn.running { color: var(--color-error); border-color: color-mix(in srgb, var(--color-error) 30%, transparent); background: var(--color-error-bg); }
.icon-btn.running:hover { color: var(--color-error); border-color: var(--color-error); }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap :global(.search-icon) { position: absolute; left: 8px; color: var(--text-faint); pointer-events: none; }