Styling of Manga-detail-page

This commit is contained in:
2025-10-13 19:34:56 +02:00
parent 189e5b8f17
commit 925eda2bc9
3 changed files with 20 additions and 12 deletions

View File

@@ -1,24 +1,25 @@
<template>
<UPageList>
<UPageList class="gap-2">
<UPageCard
v-for="chapter in chapters"
:key="chapter.key"
orientation="horizontal"
:ui="{ container: 'p-2 sm:p-2' }">
:ui="{ container: 'p-2 sm:p-2' }"
>
<template #title>
<p class="text-primary">{{ chapter.title }}</p>
</template>
<template #leading>
<p class="mr-1">Downloaded:</p>
<Icon v-if="chapter.downloaded" name="i-lucide-circle-check-big" />
<Icon v-else name="i-lucide-circle-x" />
</template>
<template #footer>
<p class="text-secondary">
<span v-if="chapter.volume" class="mr-1">Vol. {{ chapter.volume }}</span>
<span class="inline">Ch. {{ chapter.chapterNumber }}</span>
</p>
</template>
<template #footer>
<div class="flex flex-row gap-1 items-center text-dimmed">
<p>Downloaded:</p>
<Icon v-if="chapter.downloaded" name="i-lucide-circle-check-big" />
<Icon v-else name="i-lucide-circle-x" />
</div>
</template>
<template #description>
<p>{{ chapter.fileName }}</p>
</template>

View File

@@ -25,7 +25,7 @@
<USkeleton v-else class="w-full h-30" />
</div>
</template>
<UPageBody class="relative pr-12">
<UPageBody class="relative mr-12">
<div class="w-full flex flex-row justify-between">
<div>
<UButton variant="soft" :to="backPath ?? '/'" icon="i-lucide-arrow-left">Back</UButton>

View File

@@ -1,8 +1,15 @@
<template>
<MangaDetailPage :manga="manga">
<div class="grid gap-3 grid-cols-[70%_30%]">
<ChaptersList v-if="manga" :manga-id="manga.key" />
<UCard>
<template #header>
<h1>Download</h1>
</template>
<LibrarySelect :manga-id="mangaId" :library-id="libraryId" />
</UCard>
</div>
<template #actions>
<LibrarySelect :library-id="libraryId" />
<UButton variant="soft" color="warning" icon="i-lucide-trash" />
</template>
</MangaDetailPage>