Here are some resources to get started.
diff --git a/src/components/ha-zone-cards.html b/src/components/ha-zone-cards.html
index 74557f20fe..5a811eb362 100644
--- a/src/components/ha-zone-cards.html
+++ b/src/components/ha-zone-cards.html
@@ -31,7 +31,7 @@
-
+
@@ -40,54 +40,29 @@
-
+
diff --git a/src/components/ha-zone-cards.js b/src/components/ha-zone-cards.js
index 5d22ca2618..8c6430f15c 100644
--- a/src/components/ha-zone-cards.js
+++ b/src/components/ha-zone-cards.js
@@ -59,7 +59,7 @@ export default new Polymer({
const cards = {
_demo: false,
_badges: [],
- _columns: {},
+ _columns: [],
};
for (let i = 0; i < columns; i++) { cards._columns[i] = []; }
@@ -114,8 +114,12 @@ export default new Polymer({
return cards;
},
- computeShowIntroduction(showIntroduction, cards) {
- return showIntroduction || cards._demo;
+ computeShouldRenderColumn(index, items) {
+ return index === 0 || items.length;
+ },
+
+ computeShowIntroduction(index, showIntroduction, cards) {
+ return index === 0 && (showIntroduction || cards._demo);
},
computeShowHideInstruction(states, cards) {