changed the collections list to a card grid
This commit is contained in:
1 parent
bffc1227c3
commit
d6245fa768
4 files changed
+41
-17
No files matched your search
+18
-4
@@ -6,15 +6,29 @@
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-line {
|
.collection-card {
|
||||||
border-radius: 1px;
|
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);
|
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);
|
background-color: var(--shz-dark-bgh);
|
||||||
|
}
|
||||||
|
|
||||||
|
#poster {
|
||||||
|
border-radius: 5px;
|
||||||
|
min-height: 225px;
|
||||||
|
height: 225px;
|
||||||
|
object-fit:cover;
|
||||||
}
|
}
|
||||||
+8
-9
@@ -1,11 +1,10 @@
|
|||||||
<div class="d-flex align-items-start gap-2 list-line" @fadeInOut>
|
<div class="card-coat">
|
||||||
<img [src]="getPostPath()" width="70" height="105" class="" alt="List poster" (click)="redirectTo()">
|
<div class="d-flex flex-column align-items-center collection-card" @fadeInOut>
|
||||||
<div class="flex-grow-1 list-item-1">
|
<img id="poster" [src]="getPostPath()" width="150" class="" alt="List poster" (click)="redirectTo()">
|
||||||
<h6 class="mb-0 list-title" (click)="redirectTo()">{{list.name}}</h6>
|
<div class="list-item-1 mt-2 text-center">
|
||||||
<p class="mb-0">Created: {{getCreatedDate() | dateFormat}}</p>
|
<h6 class="mb-0 list-title" (click)="redirectTo()">{{list.name}}</h6>
|
||||||
<p class="mb-0">Contains: {{list.userCollectionEntries.length}} title(s)</p>
|
<!-- <p class="mb-0">Created: {{getCreatedDate() | dateFormat}}</p> -->
|
||||||
|
<!-- <p class="mb-0">Contains: {{list.userCollectionEntries.length}} title(s)</p> -->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="form-check form-check-inline me-0">
|
|
||||||
<input class="form-check-input ms-0" type="checkbox">
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
.collections-container{
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill,
|
||||||
|
minmax(150px, 2fr));
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
+9
-4
@@ -30,14 +30,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body p-0">
|
<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">
|
<div class="d-flex flex-column gap-3">
|
||||||
<!-- item start -->
|
|
||||||
<app-userCollections-list-item *ngFor="let list of collectionsToShow"
|
<app-userCollections-list-item *ngFor="let list of collectionsToShow"
|
||||||
[list]="list" @animateDestroy></app-userCollections-list-item>
|
[list]="list" @animateDestroy></app-userCollections-list-item>
|
||||||
<!-- item end -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user