diff --git a/client/src/app/components/item-stats/item-stats.component.html b/client/src/app/components/item-stats/item-stats.component.html index 4e0f43c..c23144e 100644 --- a/client/src/app/components/item-stats/item-stats.component.html +++ b/client/src/app/components/item-stats/item-stats.component.html @@ -1,9 +1,21 @@ -
- - {{ stat.key }} +{{ stat.value }} - +
+ + + {{ stat.key }} +{{ stat.value }} + + + + + + [{{ stat.key }} +{{ stat.value }}] + +
diff --git a/client/src/app/components/item-stats/item-stats.component.scss b/client/src/app/components/item-stats/item-stats.component.scss index e69de29..c30045a 100644 --- a/client/src/app/components/item-stats/item-stats.component.scss +++ b/client/src/app/components/item-stats/item-stats.component.scss @@ -0,0 +1,10 @@ + +ion-chip, ion-text { + white-space: nowrap; +} + +.one-per-line { + ion-chip, ion-text { + display: block; + } +} diff --git a/client/src/app/components/item-stats/item-stats.component.ts b/client/src/app/components/item-stats/item-stats.component.ts index ddf0bc1..26c644b 100644 --- a/client/src/app/components/item-stats/item-stats.component.ts +++ b/client/src/app/components/item-stats/item-stats.component.ts @@ -9,6 +9,8 @@ import { IEquipment, IItem, Stat } from '@interfaces'; export class ItemStatsComponent implements OnInit { public stats: Array<{ key: string; value: number }> = []; + @Input() useChips = true; + @Input() oneStatPerLine = false; @Input({ required: true }) item!: IItem; constructor() {} diff --git a/client/src/app/pages/inventory/inventory.page.html b/client/src/app/pages/inventory/inventory.page.html index 83a2aa9..86f1294 100644 --- a/client/src/app/pages/inventory/inventory.page.html +++ b/client/src/app/pages/inventory/inventory.page.html @@ -24,7 +24,7 @@ @@ -46,25 +46,40 @@ [cellClass]="'text-wrap-column'" > -
{{ row.name }}
+
+ {{ row.name }} +
+ Lv. {{ row.levelRequirement || 0 }} +
- + - + - Lv. {{ row.levelRequirement || 0 }} + {{ getValueForItem(row) | number }} - + - {{ getValueForItem(row) | number }} +