-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(inventory): show stats in inventory table, rework some table
- Loading branch information
Showing
4 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
28 changes: 20 additions & 8 deletions
28
client/src/app/components/item-stats/item-stats.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
<div> | ||
<ion-chip | ||
class="stats readonly" | ||
[color]="stat.value > 0 ? 'success' : 'danger'" | ||
*ngFor="let stat of stats" | ||
> | ||
{{ stat.key }} +{{ stat.value }} | ||
</ion-chip> | ||
<div [class.one-per-line]="oneStatPerLine"> | ||
<ng-container *ngIf="useChips"> | ||
<ion-chip | ||
class="stats readonly" | ||
[color]="stat.value > 0 ? 'success' : 'danger'" | ||
*ngFor="let stat of stats" | ||
> | ||
{{ stat.key }} +{{ stat.value }} | ||
</ion-chip> | ||
</ng-container> | ||
|
||
<ng-container *ngIf="!useChips"> | ||
<ion-text | ||
class="stats readonly" | ||
[color]="stat.value > 0 ? 'success' : 'danger'" | ||
*ngFor="let stat of stats" | ||
> | ||
[{{ stat.key }} +{{ stat.value }}] | ||
</ion-text> | ||
</ng-container> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
ion-chip, ion-text { | ||
white-space: nowrap; | ||
} | ||
|
||
.one-per-line { | ||
ion-chip, ion-text { | ||
display: block; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters