Greetings! I'm trying to setup a layout for my NSPanel Pro 120 dashboard consisting of 4 cards. I'm using layout-card trying to achieve that. Just set up everything with placeholder cards and noticed that there's still a little bit of room to scroll vertically. I am using the panel view and it seems like it should have been using only the screen space I've got. I could adjust row height accordingly, but knowing there's a space left will drive me crazy, so I'm desperate for help 🙂
Here's the yaml for my dashboard:
non_admin_settings:
hide_header: true
hide_sidebar: true
views:
- type: panel
path: main
title: Main
subview: true
theme: ios-dark-mode-blue-red
cards:
- type: custom:layout-card
layout_type: grid
layout:
grid-template-columns: 30% 70%
grid-template-rows: 50% 50%
grid-template-areas: |
"button-power weather"
"button-camera todo"
justify-items: stretch
cards:
- show_name: false
show_icon: true
type: button
icon: mdi:power
view_layout:
grid-area: button-power
- show_name: false
show_icon: true
type: button
icon: mdi:camera
view_layout:
grid-area: button-camera
- show_name: false
show_icon: true
type: button
entity: switch.reolinkdoorbell_infrared_lights_in_night_mode
view_layout:
grid-area: todo
- show_current: true
show_forecast: true
type: weather-forecast
entity: weather.yandex_pogoda
forecast_type: hourly
view_layout:
grid-area: weather
Thanks in advance!