Various styling updates

This commit is contained in:
ZXY101
2023-09-29 08:19:02 +02:00
parent d5a7837494
commit 7b8abe8739
4 changed files with 35 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import { catalog } from '$lib/catalog';
import { P } from 'flowbite-svelte';
export let id: string;
@@ -8,15 +9,15 @@
{#if manga}
<a href={id}>
<div class="flex flex-col gap-[5px] text-center items-center">
{manga.mokuroData.title}
<div class="flex flex-col gap-[5px] text-center items-center bg-slate-900 pb-1">
{#if manga.files}
<img
src={URL.createObjectURL(Object.values(manga.files)[0])}
alt="img"
class="object-contain w-[250px] h-[350px] bg-black border-gray-900 border"
class="object-contain sm:w-[250px] sm:h-[350px] bg-black border-gray-900 border"
/>
{/if}
<p class="font-semibold">{manga.mokuroData.title}</p>
</div>
</a>
{/if}