Skip to content

Commit

Permalink
chore(favorite-card): Fix use of parent class,
Browse files Browse the repository at this point in the history
add hover style shadow
  • Loading branch information
Angi-Kinas committed Feb 1, 2024
1 parent d9a0880 commit 2dca326
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<a
[title]="record.abstract"
[title]="record.title"
(click)="mdSelect.emit(record)"
class="bg-gray-8 group flex flex-col gap-[9px] justify-between relative h-[110px] py-[12px] px-[16px] w-[330px] rounded border border-gray-6 filter"
class="bg-gray-8 group flex flex-col gap-[9px] justify-between relative h-[110px] py-[12px] px-[16px] w-[330px] rounded border border-gray-6 filter hover:drop-shadow-lg"
><div class="flex justify-between">
<h1 class="font-bold text-[17px] line-clamp-1">
{{ record.title }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,4 @@ import { ResultsListItemComponent } from '../results-list-item.component'
styles: ``,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ResultsCardFavoriteComponent extends ResultsListItemComponent {
@Output() keyword = new EventEmitter<string>()

get shownOrganization() {
return this.record?.ownerOrganization
}

get creationDate() {
return this.record?.recordCreated?.toLocaleDateString('fr')
}

onKeywordClick(keyword: string, event: Event) {
event.stopPropagation()
this.keyword.emit(keyword)
}
}
export class ResultsCardFavoriteComponent extends ResultsListItemComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,4 @@ import { Store } from '@ngrx/store'
styles: ``,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ResultsListCarouselComponent extends ResultsListComponent {
constructor(
protected override searchFacade: SearchFacade,
public override routerFacade: RouterFacade,
public override store: Store<SearchState>,
public override searchService: SearchService
) {
super(searchFacade, routerFacade, store, searchService)
}
}
export class ResultsListCarouselComponent extends ResultsListComponent {}

0 comments on commit 2dca326

Please sign in to comment.