nrfribeiro
(Nuno Ribeiro)
January 2, 2025, 2:45pm
1
Hi,
I’m trying to do a simple layout card and I’m unable to have custom card always filling the full screen. The button sizes chnages if I resize the browser.
Here is the yaml
views:
type: panel
path: ‘’
cards:
type: custom:layout-card
cards:
type: button
entity: switch.portao_garagem_switch_0
name: Open Garage
icon: mdi:garage
view_layout:
grid-area: c1
type: button
entity: switch.portao_garagem_switch_0
name: Open Garage (Bottom)
icon: mdi:garage
view_layout:
grid-area: c2
layout_type: custom:grid-layout
layout:
grid-template-columns: 1fr
grid-template-rows: 1fr
grid-template-areas: |
“c1”
“c2”
What I’m doing wrong
Please post code as preformatted text (</> in the cogwheel menu).
Besides, this could be a better place for asking similar questions:
Less clutter, info in 1 place, more chances to get an answer.
nrfribeiro
(Nuno Ribeiro)
January 3, 2025, 9:43am
4
views:
- type: panel
path: ''
cards:
- type: custom:layout-card
cards:
- type: button
entity: switch.portao_garagem_switch_0
name: Open Garage
icon: mdi:garage
view_layout:
grid-area: c1
- type: button
entity: switch.portao_garagem_switch_0
name: Open Garage (Bottom)
icon: mdi:garage
view_layout:
grid-area: c2
layout_type: custom:grid-layout
layout:
grid-template-columns: 1fr
grid-template-rows: 1fr
grid-template-areas: |
"c1"
"c2"