Testing Views

This commit is contained in:
darthsandmann 2022-07-30 14:15:42 +02:00
parent 693d350459
commit 96237977e6
2 changed files with 25 additions and 2 deletions

6
lovelace/testing.yaml Normal file
View File

@ -0,0 +1,6 @@
- view_layout:
grid-area: "card1"
type: "custom:button-card"
template: "card_title"
name: "Card 1 Testing"
label: "grid-area: card1"

View File

@ -12,7 +12,7 @@ views:
title: "Overview" title: "Overview"
path: 0 path: 0
layout: layout:
grid-template-columns: "1fr 1fr" grid-template-columns: "1fr 1fr 1fr"
grid-template-rows: "min-content" grid-template-rows: "min-content"
grid-template-areas: | grid-template-areas: |
"main popup" "main popup"
@ -48,4 +48,21 @@ views:
- type: "vertical-stack" - type: "vertical-stack"
cards: cards:
!include lovelace/popup.yaml !include lovelace/popup.yaml
- type: "custom:grid-layout"
title: "Testing"
path: 1
layout:
grid-template-columns: "1fr 1fr 1fr"
grid-template-rows: "min-content"
grid-template-areas: |
"main popup"
mediaquery:
"(max-width: 1100px), (orientation: portrait)":
grid-template-columns: "100%"
grid-template-areas: "main"
cards:
!include lovelace/testing.yaml