feat: manhwa check

This commit is contained in:
2024-07-17 16:38:12 +03:00
parent c9c959ce76
commit 8c87401482
4 changed files with 34 additions and 27 deletions

View File

@@ -13,7 +13,7 @@
<div class="flex flex-col items-center">
@if (pages.length > 0 && cachedPages.get(currentPageIndex)) {
<div [class]="imageContainerClass">
@if (!isManhwa$.value) {
@if (!isManhwa) {
<app-scale-image [imageSrc]="imageUrl"></app-scale-image>
} @else {
@for (page of manhwaPages; track page.id) {
@@ -21,12 +21,12 @@
}
}
</div>
<div appLazyLoad></div>
<div #anchor></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 *ngIf="!isManhwa$.value">{{ pages[currentPageIndex].slug }} / {{ pages.length }}</p>
<p *ngIf="!isManhwa">{{ pages[currentPageIndex].slug }} / {{ pages.length }}</p>
<button (click)="nextPage()" class="p-3 text-white bg-slate-600 w-[100px] rounded-lg">
</button>