Make main dashboard vertically scrollable
This commit is contained in:
committed by
Aditya Chandel
parent
d7e6546696
commit
548e09ae2c
+2
-3
@@ -1,5 +1,5 @@
|
|||||||
|
<div class="dashboard-container">
|
||||||
<p-progressSpinner *ngIf="(bookState$ | async)?.loaded === false" styleClass="spinner center-spinner"></p-progressSpinner>
|
<p-progressSpinner *ngIf="(bookState$ | async)?.loaded === false" styleClass="spinner center-spinner"></p-progressSpinner>
|
||||||
|
|
||||||
<div class="dashboard" *ngIf="(bookState$ | async)?.loaded === true">
|
<div class="dashboard" *ngIf="(bookState$ | async)?.loaded === true">
|
||||||
<div>
|
<div>
|
||||||
<div class="dashboard-no-library" *ngIf="isLibrariesEmpty$ | async; else dashboardScroller">
|
<div class="dashboard-no-library" *ngIf="isLibrariesEmpty$ | async; else dashboardScroller">
|
||||||
@@ -40,8 +40,7 @@
|
|||||||
[books]="randomBooks$ | async"
|
[books]="randomBooks$ | async"
|
||||||
[title]="'Discover Random Reads'">
|
[title]="'Discover Random Reads'">
|
||||||
</app-dashboard-scroller>
|
</app-dashboard-scroller>
|
||||||
|
|
||||||
<p-divider></p-divider>
|
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
.dashboard-container {
|
||||||
|
height: calc(100vh - 6.7rem);
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.dashboard {
|
.dashboard {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user