Metadata viewer small UI changes

This commit is contained in:
adityachandelgit
2025-04-22 11:50:24 -06:00
committed by Aditya Chandel
parent e2192086e3
commit bc87b87993
2 changed files with 5 additions and 2 deletions
@@ -74,7 +74,7 @@
<p-divider></p-divider> <p-divider></p-divider>
<div *ngIf="metadata$ | async as metadata" class="flex-1 overflow-auto space-y-2 px-2 pb-4"> <div *ngIf="metadata$ | async as metadata" class="flex-1 overflow-auto space-y-2 px-2">
<div [ngClass]="{ 'line-clamp-5': !isExpanded, 'line-clamp-none': isExpanded }" <div [ngClass]="{ 'line-clamp-5': !isExpanded, 'line-clamp-none': isExpanded }"
class="transition-all duration-300 overflow-hidden description-container"> class="transition-all duration-300 overflow-hidden description-container">
<div class="description-content" [innerHTML]="metadata.description || 'No description available.'"></div> <div class="description-content" [innerHTML]="metadata.description || 'No description available.'"></div>
@@ -114,6 +114,7 @@
</ng-container> </ng-container>
<ng-container *ngIf="bookInSeries.length > 0"> <ng-container *ngIf="bookInSeries.length > 0">
<p-divider></p-divider>
<div> <div>
<h3 class="text-xl font-semibold pt-2">More in the Series</h3> <h3 class="text-xl font-semibold pt-2">More in the Series</h3>
<div class="dashboard-scroller-infinite" <div class="dashboard-scroller-infinite"
@@ -131,6 +132,8 @@
</div> </div>
</div> </div>
</div> </div>
<p-divider></p-divider>
</ng-container> </ng-container>
</div> </div>
</div> </div>
@@ -43,7 +43,7 @@
} }
.description-container { .description-container {
max-height: 60px; max-height: 58px;
overflow: hidden; overflow: hidden;
transition: max-height 0.3s ease-in-out; transition: max-height 0.3s ease-in-out;
} }