forked from DigiLive/mushroom-strategy
Fix area title position
put the area title card inside the vertical stack so everything matches up in the desktop view.
This commit is contained in:
2
dist/mushroom-strategy.js
vendored
2
dist/mushroom-strategy.js
vendored
File diff suppressed because one or more lines are too long
@@ -82,10 +82,6 @@ class HomeView extends AbstractView {
|
|||||||
|
|
||||||
// Add area cards.
|
// Add area cards.
|
||||||
homeViewCards.push({
|
homeViewCards.push({
|
||||||
type: "custom:mushroom-title-card",
|
|
||||||
title: "Areas",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "vertical-stack",
|
type: "vertical-stack",
|
||||||
cards: areaCards,
|
cards: areaCards,
|
||||||
});
|
});
|
||||||
@@ -182,6 +178,11 @@ class HomeView extends AbstractView {
|
|||||||
*/
|
*/
|
||||||
#createAreaCards() {
|
#createAreaCards() {
|
||||||
const groupedCards = [];
|
const groupedCards = [];
|
||||||
|
groupedCards.push({
|
||||||
|
type: "custom:mushroom-title-card",
|
||||||
|
title: "Areas",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
import("../cards/AreaCard").then(areaModule => {
|
import("../cards/AreaCard").then(areaModule => {
|
||||||
const areaCards = [];
|
const areaCards = [];
|
||||||
|
Reference in New Issue
Block a user