feat: abstract classes and destroy subscriptions

This commit is contained in:
2024-07-08 23:24:03 +03:00
parent 9d2373a298
commit 6833105604
13 changed files with 191 additions and 100 deletions

View File

@@ -1,8 +1,14 @@
<div class="flex flex-row items-center justify-between me-4">
<button class="bg-slate-600 text-white rounded-lg p-3 m-4" (click)="backToTitle()">
<div
class="flex flex-row items-center justify-between me-4 max-w-[900px] relative -translate-x-[50%] left-[50%]"
>
<a
[routerLink]="['/', 'detail']"
[queryParams]="{ url: url }"
class="bg-slate-600 text-white rounded-lg p-3 m-4"
>
Назад к тайтлу
</button>
<h3>{{ currentChapterInfo?.number }}. {{ currentChapterInfo?.name }}</h3>
</a>
<h3>{{ currentChapterInfo?.number }}. {{ currentChapterInfo?.name || "Нет названия" }}</h3>
</div>
<div class="flex flex-col items-center">
@if (pages.length > 0 && cachedPages[currentPageIndex]) {