Open ghost opened 1 year ago
To me, it seems the issue is with using the vertical-stack card. When I removed that from your code, changed the type to custom:layout-card and added layout_type: custom:grid-layout, this worked for me.
title: Overview
type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: auto
grid-template-rows: auto
grid-template-areas: |
"test1"
"test2"
cards:
- type: markdown
view_layout:
grid-area: test1
show:
mediaquery: "(min-width: 500px)"
content: |
works: I can't see this on my iPhone in portrait
- type: markdown
content: |
I should see this everywhere
- type: markdown
view_layout:
show:
mediaquery: "(max-width: 500px)"
content: |
doesn't work: I shouldn't see this on my iPhone in portrait
When I change the max-width at the bottom to 2500px (I'm on PC), the card appeared. Changing the min-width for test1 to 2500px and max-width for test2 to 2500px confirmed it would hide the first one.
My Home Assistant version: 2023.02.5
Layout-card version (FROM BROWSER CONSOLE): 2.4.4
What I am doing:
custom:grid-layout:
custom:gap-card
in a vertical-stack on my iPhone in portraitWhat I expected to happen: I expect the card to not show on my iPhone in portrait
What happened instead: card always shows
show:
works fine at thegrid-area
levelMinimal steps to reproduce:
grid-area
test1
works (at grid-area level)grid-area
test2
doesn't work (at card level)Error messages from the browser console: no error
By putting an X in the boxes ([X]) below, I indicate that I: