I am making a Lovelace page for my boat, to control the stereo (party with ESP32 relays, partly with ESP32 IR commands and partly with network commands). I am using a vertical stack as the main card and then six horizontal stacks inside of that. To make the card fill up the available screen real estate (this will be used with four different resolutions) I have set it to panel as the view type. But for some reason the second horizontal stack overlaps the first, while the rest do not. Can somebody please tell me why? This is what it looks like:
And the code:
views:
- title: Home
cards:
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: switch.styrehus1_pioneer_spiller
show_state: true
icon: mdi:audio-video
name: Anlegg strøm
icon_height: 50px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: switch.styrehus1_forsterker_foran
show_state: true
icon: mdi:amplifier
name: Forsterker foran
icon_height: 50px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: switch.styrehus1_forsterker_bak
show_state: true
icon: mdi:amplifier
name: Forsterker bak
icon_height: 50px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: switch.styrehus1_forsterkere_i_subwoofere
show_state: true
icon: mdi:music-clef-bass
name: Subwoofere
icon_height: 50px
title: Anleggstrøm
- type: horizontal-stack
cards:
- show_name: false
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ir_volum_ned
show_state: false
icon: mdi:volume-minus
hold_action:
action: toggle
icon_height: 75px
name: Volum ned
- show_name: false
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ir_volum_opp
show_state: false
icon: mdi:volume-plus
name: Volum opp
icon_height: 75px
- show_name: false
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ir_mute
show_state: false
icon: mdi:volume-mute
name: Mute
icon_height: 75px
- show_name: false
show_icon: true
type: button
tap_action:
action: navigate
navigation_path: /lovelace-nettbrett/9
show_state: false
icon: mdi:equalizer
name: Equalizer
icon_height: 75px
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_aux
show_state: false
icon: mdi:music-box-multiple-outline
name: JRMC
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_dab
show_state: false
icon: mdi:radio
name: DAB
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_bluetooth
show_state: false
icon: mdi:bluetooth-audio
name: Bluetooth
icon_height: 40px
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: navigate
navigation_path: /lovelace-nettbrett/jriver-media-center
show_state: false
icon: mdi:archive-music-outline
name: Media Center-panel
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: mqtt.publish
target: {}
data:
topic: madmax/wallpanel/command
payload: >-
{"url":
"intent:#Intent;launchFlags=0x10000000;component=com.lenworthrose.eos/.activity.RootNavigationActivity;end"}
hold_action:
action: none
name: JRMC EOS
icon: mdi:music
icon_height: 40px
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_1_p1
show_state: false
icon: mdi:numeric-1
name: NRK P1
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_2_p2
show_state: false
icon: mdi:numeric-2
name: NRK P2
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_3_p3
show_state: false
icon: mdi:numeric-3
name: NRK P3
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_4_p4
show_state: false
icon: mdi:numeric-4
name: P4
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_6_alltid_nyheter
show_state: false
icon: mdi:newspaper-variant-multiple-outline
name: Alltid Nyheter
icon_height: 40px
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_8_p6_rock
show_state: false
icon: mdi:guitar-acoustic
name: P6 Rock
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_5_radio_rock
show_state: false
icon: mdi:guitar-electric
name: Radio Rock
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ga_til_lagret_radiokanal_7_p10_country
show_state: false
icon: mdi:cow
name: P10 Country
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: >-
button.styrehus1_ir_sok_lang_press_pa_ikke_lagret_radiokanal_opp_meny_ok_enter
show_state: false
icon: mdi:radio-tower
icon_height: 40px
name: Kanalsøk opp
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ir_lagret_radiokanal_menyvalg_ned
show_state: false
icon: mdi:minus-circle-outline
name: Lagret kanal ned
icon_height: 40px
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.styrehus1_ir_lagret_radiokanal_menyvalg_opp
show_state: false
icon: mdi:plus-circle-outline
name: Lagret kanal opp
icon_height: 40px
type: panel