mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
WIP(shop): backgrounds appear
This commit is contained in:
@@ -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));
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user