feat: scrolling manhwa
This commit is contained in:
@@ -13,13 +13,19 @@
|
||||
<div class="flex flex-col items-center">
|
||||
@if (pages.length > 0 && cachedPages[currentPageIndex]) {
|
||||
<div [class]="imageContainerClass">
|
||||
<app-scale-image [imageSrc]="imageUrl"></app-scale-image>
|
||||
@if (!isManhwa$.value) {
|
||||
<app-scale-image [imageSrc]="imageUrl"></app-scale-image>
|
||||
} @else {
|
||||
@for (page of manhwaPages; track $index) {
|
||||
<app-scale-image [imageSrc]="page.imageUrl"></app-scale-image>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
<div class="flex items-center justify-center space-x-4 my-10">
|
||||
<button (click)="prevPage()" class="p-3 text-white bg-slate-600 w-[100px] rounded-lg">
|
||||
←
|
||||
</button>
|
||||
<p>{{ pages[currentPageIndex].slug }} / {{ pages.length }}</p>
|
||||
<p *ngIf="!isManhwa$.value">{{ pages[currentPageIndex].slug }} / {{ pages.length }}</p>
|
||||
<button (click)="nextPage()" class="p-3 text-white bg-slate-600 w-[100px] rounded-lg">
|
||||
→
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user