Styling (fix margins)

Remove expanding MangaCards
Center MangaCardList
Fix LibrarySelect
This commit is contained in:
2025-10-14 23:36:39 +02:00
parent 39a1cb3857
commit 3f5c009d2e
11 changed files with 42 additions and 68 deletions

View File

@@ -1,10 +1,12 @@
<template>
<div class="flex flex-row flex-wrap gap-2">
<MangaCard v-for="(m, i) in manga" :key="m.key" :manga="m" :expanded="i === expanded" @click="expanded = expanded === i ? -1 : i">
<template #actions="forManga">
<UButton :to="`/manga/${forManga.key}`">Details</UButton>
</template>
</MangaCard>
<div class="flex flex-row flex-wrap gap-2 justify-evenly">
<MangaCard
v-for="(m, i) in manga"
:key="m.key"
:manga="m"
:expanded="i === expanded"
class="cursor-pointer"
@click="$emit('click', m)" />
</div>
</template>
@@ -14,5 +16,7 @@ type Manga = components['schemas']['Manga'];
type MinimalManga = components['schemas']['MinimalManga'];
const expanded = ref(-1);
defineEmits<{ (e: 'click', manga: MinimalManga | Manga): void }>();
defineProps<{ manga?: (MinimalManga | Manga)[] }>();
</script>