feat: manhwa scroll and cache pages rework

This commit is contained in:
2024-07-17 23:46:33 +03:00
parent 0fea62b639
commit 4105933098
6 changed files with 106 additions and 183 deletions

View File

@@ -1,3 +1,7 @@
<div class="image-container" #container>
<img #image [src]="imageSrc" (load)="onImageLoad()" alt="Manga page" />
@if (imageSrc) {
<img #image [src]="imageSrc" (load)="onImageLoad()" alt="Manga page" />
} @else {
<div class="h-screen flex flex-col items-center justify-center"><h1>Loading...</h1></div>
}
</div>