{ if (e.target === e.currentTarget) onClose(); }} onkeydown={(e) => e.key === "Escape" && onClose()} >
Link as same series

Linked entries share covers and are merged in search. Click a linked entry to unlink.

{#if query.trim()} {#if searchResults.length === 0}

No results

{:else} {#each searchResults as m (m.id)} {@const isLinked = linkedIds.includes(m.id)} {/each} {/if} {:else} {#if linked.length > 0}

Linked

{#each linked as m (m.id)} {/each} {/if} {#if suggestions.length > 0}

Suggested

{#each suggestions as { manga: m, score } (m.id)} {/each} {/if} {#if linked.length === 0 && suggestions.length === 0}

No suggestions — search your library above.

{/if} {/if}