Open ildar170975 opened 2 years ago
Same is with vertical-layout
.
I have a similar problem, I have a set of cards created with vertical-stack-in-card that normally I see like this:
but when i choose a layout from layout-card, this is what i see:
It is like the second part of each stack-in-card is not show.
This is the code of one card
type: custom:vertical-stack-in-card
styles:
'--chip-box-shadow': none
'--chip-background': none
'--chip-spacing': 0
cards:
- type: custom:mushroom-template-card
secondary: Cucina e soggiorno
icon: mdi:sofa
tap_action:
action: navigate
navigation_path: soggiorno
icon_color: blue
multiline_secondary: true
primary: Zona giorno
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.temperatura_soggiorno
icon_color: blue
- type: entity
entity: sensor.umidita_soggiorno_knx
icon_color: blue
Using stack-in-card and not vertical-stack-in-card solved my problem. Sometimes the easier solution is the correct one...
@gfandrea I do not think your case is related to the issue.
stack-in-card
, not vertical-stack-in-card
.layout-card
.
My Home Assistant version: 2022.2.4
Layout-card version (FROM BROWSER CONSOLE): 2.3.1
What I am doing: Using a custom:stack-in-card on the view with "horizontal-layout".
What I expected to happen: The card is displayed properly.
What happened instead: The card is NOT displayed properly.
Minimal steps to reproduce:
Create an empty view.
Add the only card with custom:stack-in-card:
Refresh the page; it should be looking like this:
Check the style:
Uncomment the commented line in the code - make the view to be "horizontal-layout".
Refresh the page; it looks like this:
Check the style:
In the 1st case (with default layout) the margin between internal cards was 0. In the 2nd case (with "horizontal-layout") it is 4px.
I do not know what could be a reason of it - stack-in-card or layout-card. The only thing I know that this happened since 2022.2.
I am ready to address the same issue to the developer of
stack-in-card
.Error messages from the browser console: None
By putting an X in the boxes ([X]) below, I indicate that I: