Make main dashboard vertically scrollable

This commit is contained in:
adityachandelgit
2025-05-11 23:45:08 -06:00
committed by Aditya Chandel
parent d7e6546696
commit 548e09ae2c
2 changed files with 46 additions and 42 deletions
@@ -1,6 +1,6 @@
<p-progressSpinner *ngIf="(bookState$ | async)?.loaded === false" styleClass="spinner center-spinner"></p-progressSpinner>
<div class="dashboard" *ngIf="(bookState$ | async)?.loaded === true">
<div class="dashboard-container">
<p-progressSpinner *ngIf="(bookState$ | async)?.loaded === false" styleClass="spinner center-spinner"></p-progressSpinner>
<div class="dashboard" *ngIf="(bookState$ | async)?.loaded === true">
<div>
<div class="dashboard-no-library" *ngIf="isLibrariesEmpty$ | async; else dashboardScroller">
<div *ngIf="(userService.userData$ | async)?.permissions as permissions">
@@ -40,8 +40,7 @@
[books]="randomBooks$ | async"
[title]="'Discover Random Reads'">
</app-dashboard-scroller>
<p-divider></p-divider>
</ng-template>
</div>
</div>
</div>
@@ -1,3 +1,8 @@
.dashboard-container {
height: calc(100vh - 6.7rem);
overflow-y: auto;
}
.dashboard {
flex-direction: column;
align-items: center;