-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conditional state leaves a gap in card when 'off' #77
Comments
I experience the same. Unfortunately I have several instances where I must use a container card (I'm actually using stack-in-card). In my case it also triggers the borders/background so I have a visible line when there is an empty container. I think it's possibly the same issue as this? If I had to guess the issue is the container card is created whether the state switch returns a result or not. I'm not sure there is anything Thomas can do about that with state-switch. The same thing happens with native conditional cards. Perhaps the core container cards (vertical-stack, horizontal-stack) could check to see if they contain any cards and hide themselves if not, similar to entity-filter and the show_empty parameter? |
yes, it probably is. |
Hi there, foud this workaround to align the cards when state-switch is not "active" (the off state display a blank card).
|
showing fine when 'on'
however, turning off the boolean, turns the state-switch off alright, but still leaves a gap:
clearly visible on the right hand side where both cards ideally should align
taking the state switch out of the vertical-stack and setting it individually in the view:
makes it behave as desired
Please let me know if this expected? or would I need to write-up an issue in vertical-stack frontend repo
The text was updated successfully, but these errors were encountered: