minor style/functions renaming changes
This commit is contained in:
1 parent
3374aa9944
commit
8b4c0792c0
13 files changed
+95
-50
No files matched your search
+7
-6
@@ -2,18 +2,19 @@
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.list-title{
|
||||
.list-title {
|
||||
font-size: 20px;
|
||||
}
|
||||
.list-title:hover {
|
||||
color: var(--aruze-blue)
|
||||
}
|
||||
|
||||
.list-line{
|
||||
.list-line {
|
||||
border-radius: 1px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.list-line:hover {
|
||||
background-color: aliceblue;
|
||||
background-color: var(--shz-light-bgh);
|
||||
}
|
||||
|
||||
:host-context([data-bs-theme="dark"]) .list-line:hover {
|
||||
background-color: var(--shz-dark-bgh);
|
||||
}
|
||||
+6
-3
@@ -1,4 +1,4 @@
|
||||
import { Component, Input} from '@angular/core';
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { UserCollection } from '../../../../shared/models/userCollection.model';
|
||||
import { UserCollectionService } from '../../../../core/services/userCollection.service';
|
||||
import { Router } from '@angular/router';
|
||||
@@ -25,7 +25,10 @@ import { trigger, transition, style, animate } from '@angular/animations';
|
||||
export class UserCollectionsListItemComponent {
|
||||
@Input() list!: UserCollection;
|
||||
|
||||
constructor(private listService: UserCollectionService, private router: Router) {}
|
||||
constructor(
|
||||
private listService: UserCollectionService,
|
||||
private router: Router
|
||||
) {}
|
||||
|
||||
getPostPath() {
|
||||
if (this.list.poster_path == null) return 'https://pic.pnnet.dev/256x256';
|
||||
@@ -44,6 +47,6 @@ export class UserCollectionsListItemComponent {
|
||||
}
|
||||
|
||||
deleteList() {
|
||||
this.listService.deleteList(this.list.id);
|
||||
this.listService.deleteCollection(this.list.id);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user