openManga(record)}
onkeydown={(e) => e.key === "Enter" && openManga(record)}
>
{record.title}
{#if record.manga?.title && record.manga.title !== record.title}
{record.manga.title}
{/if}
{#if record.private}
{/if}
{#if editingChapter === record.id}
{#if record.totalChapters > 0}
{/if}
{:else if progress !== null}
openChapterEditor(record)}
onkeydown={(e) => e.key === "Enter" && openChapterEditor(record)}
title="Click to edit"
>
Ch. {record.lastChapterRead} / {record.totalChapters}
✎
{:else}
openChapterEditor(record)}
onkeydown={(e) => e.key === "Enter" && openChapterEditor(record)}
title="Click to set chapter"
>
{record.lastChapterRead > 0 ? `Ch. ${record.lastChapterRead} read` : "Set chapter…"}
✎
{/if}