Loading history...
{:else if historyItems.length === 0}
No history yet
Start browsing to see your recent history here.
{#each displayedHistoryItems as item (item.id)}
{/if}
navigateTo(item.url)}
onkeydown={(e) => e.key === 'Enter' && navigateTo(item.url)}
>
{/each}
{#if !showAllHistory && historyItems.length > INITIAL_HISTORY_DISPLAY}
{:else if showAllHistory && hasMoreHistory}
{#if loadingMoreHistory}
{#if item.favicon_url}
{
const target = e.target as HTMLImageElement;
if (target) {
target.style.display = 'none';
const fallback = target.nextElementSibling as HTMLElement;
if (fallback) fallback.style.display = 'flex';
}
}}
onload={(e) => {
const target = e.target as HTMLImageElement;
if (target) {
const fallback = target.nextElementSibling as HTMLElement;
if (fallback) fallback.style.display = 'none';
}
}}
/>
{:else}
{/if}
{getDisplayTitle(item)}
{formatTime(item.last_visited)}
{@html highlightDomainInUrl(item.url)}
{ e.stopPropagation(); togglePin(item.url); }}
onkeydown={(e) => { if (e.key === 'Enter') { e.stopPropagation(); togglePin(item.url); } }}
title={isPinned(item.url) ? "Unpin from favorites" : "Pin to favorites"}
>
{#if isPinned(item.url)}
{:else}
{/if}
deleteHistoryEntry(item.id, e)}
onkeydown={(e) => e.key === 'Enter' && deleteHistoryEntry(item.id, e)}
title="Delete this entry"
>
Loading more history...
{/if}
{/if}