+ limitRowsStyle () {
+ if (this.maxRows <= 0) return {}
+
+ return {
+ 'grid-template-rows': `repeat(${this.maxRows}, 1fr)`,
+ 'grid-auto-rows': '0', // Set height to 0 for autogenerated grid rows
+ 'overflow-y': 'hidden' // Hide grid items that overflow
+ }
+ }
+