diff --git a/website/client/src/components/shops/customizations/index.vue b/website/client/src/components/shops/customizations/index.vue index dbbfc2e1cf..ecc05a689f 100644 --- a/website/client/src/components/shops/customizations/index.vue +++ b/website/client/src/components/shops/customizations/index.vue @@ -2,6 +2,17 @@
+
+ +
{{ category.text }} -
- {{ item.text }} -
+ +
@@ -68,20 +93,27 @@ diff --git a/website/client/src/components/ui/itemRows.vue b/website/client/src/components/ui/itemRows.vue index f034ad6365..498fadff2e 100644 --- a/website/client/src/components/ui/itemRows.vue +++ b/website/client/src/components/ui/itemRows.vue @@ -69,6 +69,9 @@ export default { noItemsLabel: { type: String, }, + maxItemsPerRow: { + type: Number, + }, }, data () { return { @@ -80,6 +83,9 @@ export default { }, computed: { itemsPerRow () { + if (this.maxItemsPerRow > 0) { + return this.maxItemsPerRow; + } return Math.floor(this.currentWidth / (this.itemWidth + this.itemMargin)); }, }, diff --git a/website/common/script/libs/shops.js b/website/common/script/libs/shops.js index 7cdb94ac24..9154c9466e 100644 --- a/website/common/script/libs/shops.js +++ b/website/common/script/libs/shops.js @@ -559,42 +559,49 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories const hairColorsCategory = { identifier: 'hairColors', text: i18n.t('hairColors', language), + items: [], }; categories.push(hairColorsCategory); const hairStylesCategory = { identifier: 'hairStyles', text: i18n.t('hairStyles', language), + items: [], }; categories.push(hairStylesCategory); const skinsCategory = { identifier: 'skins', text: i18n.t('skins', language), + items: [], }; categories.push(skinsCategory); const animalEarsCategory = { identifier: 'animalEars', text: i18n.t('animalEars', language), + items: [], }; categories.push(animalEarsCategory); const animalTailsCategory = { identifier: 'animalTails', text: i18n.t('animalTails', language), + items: [], }; categories.push(animalTailsCategory); const shirtsCategory = { identifier: 'shirts', text: i18n.t('shirts', language), + items: [], }; categories.push(shirtsCategory); const facialHairCategory = { identifier: 'facialHair', text: i18n.t('facialHairs', language), + items: [], }; categories.push(facialHairCategory);