Skip to content

Commit

Permalink
closes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Apr 27, 2024
1 parent 954effd commit 477a489
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,40 +91,6 @@ a {
.cell {
padding-left: 10px;
border-left: 6px solid var(--cell-border, transparent);

&.color-B {
--cell-border: #00587c;
}

&.color-R {
--cell-border: #6a111b;
}

&.color-G {
--cell-border: #21613d;
}

&.color-Y {
--cell-border: #7d700c;
}
}

.trigger-icons {
display: flex;
flex-direction: row;
align-items: center;

&.character {
app-cardicon {
margin-left: 5px;
}
}

&.climax {
app-cardicon:not(:first-child) {
margin-left: 5px;
}
}
}

.ability:not(:last-child) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Component, effect, inject, input, ViewChild } from '@angular/core';
import {
Component,
effect,
inject,
input,
output,
ViewChild,
} from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { DatatableComponent, SelectionType } from '@siemens/ngx-datatable';
import { sortBy } from 'lodash';
Expand Down Expand Up @@ -36,6 +43,8 @@ export class SearchCardsComponent {
public querySortBy = input<QuerySortBy>('asc');
public page = input<number>(0);

public pageChanged = output<number>();

public queryDesc = '';

public readonly cardsPerPage = 60;
Expand Down Expand Up @@ -144,6 +153,7 @@ export class SearchCardsComponent {
);

this.updateParams();
this.pageChanged.emit(this.pageValue);
}

select({ selected }: any) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/search/search.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<app-topbar [query]="query" (type)="search($event)"></app-topbar>
</ion-header>

<ion-content>
<ion-content #content>
<div class="container">
<app-search-cards [query]="query" [queryDisplay]="queryDisplay" [querySort]="querySort" [querySortBy]="querySortBy"
[page]="page"></app-search-cards>
[page]="page" (pageChanged)="content.scrollToTop()"></app-search-cards>
</div>

<app-below-the-fold></app-below-the-fold>
Expand Down

0 comments on commit 477a489

Please sign in to comment.