changed the collections list to a card grid

This commit is contained in:
X4Lo committed 2024-05-19 06:56:11 +01:00
1 parent bffc1227c3
commit d6245fa768
4 files changed
+41 -17

No files matched your search

@@ -6,15 +6,29 @@
font-size: 20px;
}
.list-line {
.collection-card {
border-radius: 1px;
padding: 2px;
padding: 5px;
min-height: 225px;
margin: 10px 10px;
}
.card-coat{
height: 100%;
border-radius: 5px;
cursor: pointer;
}
.list-line:hover {
.card-coat:hover {
background-color: var(--shz-light-bgh);
}
:host-context([data-bs-theme="dark"]) .list-line:hover {
:host-context([data-bs-theme="dark"]) .card-coat:hover {
background-color: var(--shz-dark-bgh);
}
#poster {
border-radius: 5px;
min-height: 225px;
height: 225px;
object-fit:cover;
}
@@ -1,11 +1,10 @@
<div class="d-flex align-items-start gap-2 list-line" @fadeInOut>
<img [src]="getPostPath()" width="70" height="105" class="" alt="List poster" (click)="redirectTo()">
<div class="flex-grow-1 list-item-1">
<h6 class="mb-0 list-title" (click)="redirectTo()">{{list.name}}</h6>
<p class="mb-0">Created: {{getCreatedDate() | dateFormat}}</p>
<p class="mb-0">Contains: {{list.userCollectionEntries.length}} title(s)</p>
<div class="card-coat">
<div class="d-flex flex-column align-items-center collection-card" @fadeInOut>
<img id="poster" [src]="getPostPath()" width="150" class="" alt="List poster" (click)="redirectTo()">
<div class="list-item-1 mt-2 text-center">
<h6 class="mb-0 list-title" (click)="redirectTo()">{{list.name}}</h6>
<!-- <p class="mb-0">Created: {{getCreatedDate() | dateFormat}}</p> -->
<!-- <p class="mb-0">Contains: {{list.userCollectionEntries.length}} title(s)</p> -->
</div>
</div>
<!-- <div class="form-check form-check-inline me-0">
<input class="form-check-input ms-0" type="checkbox">
</div> -->
</div>
@@ -0,0 +1,6 @@
.collections-container{
display: grid;
grid-template-columns: repeat(auto-fill,
minmax(150px, 2fr));
gap: 20px;
}
@@ -30,14 +30,19 @@
</div>
<div class="card-body p-0">
<div class="p-3 ps ps--active-y">
<div class="collections-container">
<app-userCollections-list-item *ngFor="let list of collectionsToShow"
[list]="list" @animateDestroy></app-userCollections-list-item>
</div>
<!-- <div class="p-3 ps ps--active-y">
<div class="d-flex flex-column gap-3">
<!-- item start -->
<app-userCollections-list-item *ngFor="let list of collectionsToShow"
[list]="list" @animateDestroy></app-userCollections-list-item>
<!-- item end -->
</div>
</div>
</div> -->
</div>
</div>
</div>