Remove more tailwind

This commit is contained in:
aditya.chandel
2025-01-24 14:03:17 -07:00
parent 091e4fc8d2
commit 7422af9860
3 changed files with 27 additions and 69 deletions
@@ -1,22 +1,22 @@
<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">
@@ -24,6 +24,5 @@
</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>
@@ -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;
}
@@ -20,14 +20,18 @@
[title]="'Last Read Books'"> [title]="'Last Read Books'">
</app-dashboard-scroller> </app-dashboard-scroller>
<div class="mb-8">
<p-divider></p-divider> <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>
<div class="mb-8">
<p-divider></p-divider> <p-divider></p-divider>
</div>
<app-dashboard-scroller <app-dashboard-scroller
[books]="randomBooks$ | async" [books]="randomBooks$ | async"