I am trying to create a grid layout with layout-card, where i have 5 columns and 2 rows. I want both rows to be the exact same height, and fill out the screen, but for some reason I can’t adjust the height of the grid layout.
The top one, is the layout I’m trying to create, and the bottom one is how it looks now.
This is my code:
- title: Kitchen Homescreen
path: kitchen-homescreen
icon: mdi:pot-mix
type: custom:layout-card
layout_type: grid
layout:
grid-template-columns: 20% 20% 20% 20% 20%
grid-template-rows: 50% 50%
grid-template-areas: |
"poster poster calendar calendar calendar"
"poster poster music todolist recipe"
justify-items: stretch
badges: []
cards:
- type: weather-forecast
entity: weather.home
view_layout:
grid-area: poster
show_forecast: true
- type: media-control
entity: media_player.sonos_living_room
view_layout:
grid-area: music
- type: custom:todoist-card
show_completed: 5
entity: sensor.to_do_list
view_layout:
grid-area: todolist
show_item_delete: true
show_item_close: true
show_item_add: true
show_header: true
only_today_overdue: false
- type: calendar
entities:
- calendar.xxxxxxxxx
view_layout:
grid-area: calendar
How can I achieve this?