mirror of
https://github.com/danbulant/Mangades
synced 2026-06-15 20:31:12 +00:00
fix search
This commit is contained in:
parent
c6afc14b7c
commit
c7e28e8fbd
1 changed files with 2 additions and 2 deletions
|
|
@ -11,10 +11,10 @@
|
|||
|
||||
<div class="items" class:items-list={itemsList}>
|
||||
{#each entries as entry}
|
||||
<a href="/{entry.id}" class="item" class:r18={!["safe", "ecchi"].includes(entry.attributes.contentRating)} on:click={() => open(entry)}>
|
||||
<a href="/{entry.id}" class="item" class:r18={!["safe", "suggestive"].includes(entry.attributes.contentRating)} on:click={() => open(entry)}>
|
||||
<div class="flex">
|
||||
{#if entry.relationships.find(t => t.type === "cover_art")}
|
||||
<img class="cover" draggable="false" src="https://cors-anywhere.danbulant.workers.dev/?https://uploads.mangadex.org/covers/{entry.id}/{entry.relationships.find(t => t.type === "cover_art").attributes.fileName}.512.jpg" alt="" on:click={() => selectedImage = `https://cors-anywhere.danbulant.workers.dev/?https://uploads.mangadex.org/covers/${mangaId}/${relationships.find(t => t.type === "cover_art").attributes.fileName}.512.jpg`}>
|
||||
<img class="cover" draggable="false" src="https://cors-anywhere.danbulant.workers.dev/?https://uploads.mangadex.org/covers/{entry.id}/{entry.relationships.find(t => t.type === "cover_art").attributes.fileName}.512.jpg" alt="">
|
||||
{:else}
|
||||
Broken art
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Reference in a new issue