Markers
{#if markers.length > 0}
{markers.length}
{/if}
{#if grouped.length === 0}
No markers yet
Mark pages while reading with the marker button or keybind
{:else} {#each grouped as group}
{group.chapterName}
{group.items.length}
{#each group.items as m (m.id)}
{#if editingId === m.id}
{#each Object.entries(COLOR_HEX) as [c, hex]}
editColor = c as MarkerColor} title={c} >
{/each}
{ if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); commitEdit(); } if (e.key === "Escape") editingId = ""; }} >
Save
editingId = ""}>Cancel
{:else}
jumpToMarker(m)}>
p.{m.pageNumber}
{#if m.note}
{m.note}
{:else}
No note
{/if}
{formatDate(m.updatedAt ?? m.createdAt)}
startEdit(m)} title="Edit">
removeMarker(m.id)} title="Delete">
{/if}
{/each}
{/each} {/if}