Add basic region values to result page

This commit is contained in:
Patrick Gebhardt 2020-06-16 00:02:50 +02:00
parent 56818c4bff
commit d424479d2f
2 changed files with 10 additions and 3 deletions

View File

@ -2,9 +2,12 @@
<mat-card *ngIf="results">
<h2 matCardTitle>Suchergebnisse ({{results.length}}):</h2>
<ul>
<li *ngFor="let result of results">{{result.name}} ({{result.score}})</li>
</ul>
<mat-card *ngFor="let result of results" class="resultCard">
<h2 matCardTitle>{{result.name}} ({{result.score}})</h2>
<ul>
<li *ngFor="let score of result.scores">{{score.type}}: {{score.value}}</li>
</ul>
</mat-card>
</mat-card>
<div *ngIf="!results" class="spinner">

View File

@ -8,6 +8,10 @@
}
}
.resultCard {
margin-bottom: 0.5rem;
}
.spinner {
flex: 1 1 auto;
display: flex;