Remove more tailwind
This commit is contained in:
+21
-22
@@ -1,29 +1,28 @@
|
|||||||
<div class="dashboard-scroller-container">
|
<p class="text-left text-2xl mb-2.5 p-1.25">{{ title }}</p>
|
||||||
<h2 class="dashboard-scroller-title">{{ title }}</h2>
|
|
||||||
|
|
||||||
<div class="no-books-container" *ngIf="!books || books.length === 0">
|
<div class="pt-12 flex justify-center items-center" *ngIf="!books || books.length === 0">
|
||||||
<p class="no-books-text">
|
<p class="text-sm">
|
||||||
{{ bookListType === 'lastRead' ? "You haven't read any books yet!" : "No books have been added to BookLore!" }}
|
{{ bookListType === 'lastRead' ? "You haven't read any books yet!" : "No books have been added to BookLore!" }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="infinite-scroller"
|
<div class="flex flex-row overflow-x-auto overflow-y-hidden snap-x snap-mandatory p-1 gap-5 h-full box-border"
|
||||||
infiniteScroll
|
infiniteScroll
|
||||||
[infiniteScrollDistance]="2"
|
[infiniteScrollDistance]="2"
|
||||||
[infiniteScrollThrottle]="50"
|
[infiniteScrollThrottle]="50"
|
||||||
#scrollContainer
|
#scrollContainer
|
||||||
[horizontal]="true">
|
[horizontal]="true">
|
||||||
|
|
||||||
<div class="infinite-scroller-a-book" *ngFor="let book of books">
|
<div class="overflow-hidden bg-[var(--card-background)] rounded-lg flex-[0_0_9.5%] snap-start relative" *ngFor="let book of books">
|
||||||
<app-book-card [book]="book" [isCheckboxEnabled]="false"></app-book-card>
|
<app-book-card [book]="book" [isCheckboxEnabled]="false"></app-book-card>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div *ngIf="!books || books.length === 0">
|
<div *ngIf="!books || books.length === 0">
|
||||||
<p-progressSpinner></p-progressSpinner>
|
<p-progressSpinner></p-progressSpinner>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="books === null">
|
<div *ngIf="books === null">
|
||||||
<p class="no-books-text">Failed to load books! :(</p>
|
<p class="text-sm">Failed to load books! :(</p>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
-45
@@ -1,45 +0,0 @@
|
|||||||
.dashboard-scroller-container {
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dashboard-scroller-title {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
color: var(--text-color);
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding: 5px;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-books-text {
|
|
||||||
font-size: 0.95rem;
|
|
||||||
color: var(--text-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-books-container {
|
|
||||||
padding-top: 3rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.infinite-scroller {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
overflow-x: auto;
|
|
||||||
overflow-y: hidden;
|
|
||||||
scroll-snap-type: x mandatory;
|
|
||||||
padding: 5px;
|
|
||||||
gap: 20px;
|
|
||||||
height: 100%;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.infinite-scroller-a-book {
|
|
||||||
overflow: hidden;
|
|
||||||
background-color: var(--card-background);
|
|
||||||
border-radius: 8px;
|
|
||||||
flex: 0 0 9.5%;
|
|
||||||
scroll-snap-align: start;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
+6
-2
@@ -20,14 +20,18 @@
|
|||||||
[title]="'Last Read Books'">
|
[title]="'Last Read Books'">
|
||||||
</app-dashboard-scroller>
|
</app-dashboard-scroller>
|
||||||
|
|
||||||
<p-divider></p-divider>
|
<div class="mb-8">
|
||||||
|
<p-divider></p-divider>
|
||||||
|
</div>
|
||||||
|
|
||||||
<app-dashboard-scroller
|
<app-dashboard-scroller
|
||||||
[books]="latestAddedBooks$ | async"
|
[books]="latestAddedBooks$ | async"
|
||||||
[title]="'Latest Added Books'">
|
[title]="'Latest Added Books'">
|
||||||
</app-dashboard-scroller>
|
</app-dashboard-scroller>
|
||||||
|
|
||||||
<p-divider></p-divider>
|
<div class="mb-8">
|
||||||
|
<p-divider></p-divider>
|
||||||
|
</div>
|
||||||
|
|
||||||
<app-dashboard-scroller
|
<app-dashboard-scroller
|
||||||
[books]="randomBooks$ | async"
|
[books]="randomBooks$ | async"
|
||||||
|
|||||||
Reference in New Issue
Block a user