Skip to content
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

Container is not collapsing when empty #750

Open
CFenner opened this issue Dec 3, 2024 · 2 comments
Open

Container is not collapsing when empty #750

CFenner opened this issue Dec 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@CFenner
Copy link

CFenner commented Dec 3, 2024

Describe the bug

I've a dashboard RPi that is always displaying a HA dashboard with the battery card.
Recently I witnessed that the battery card was empty after I changed the batteries due to the filter. But the space was not used by the entity on the right side of the card.

I'll try to reproduce the issue later at home of make a foto of the dashboard.

How to reproduce

  • Create a dashboard (new default kind).
  • Add a full-width section
  • Add a battery card that conditionally displays battery entities.
  • Add cards to the left and right.
  • Make the battery card display an entity
  • Make the battery card display no entities
  • Now there is a gap between the two surrounding cards but the battery card is not displayed.

Expected behavior

YAML configuration

# please paste here your card config (before backticks below; do not remove them)

Entity debug data

Dev console errors

Screenshots

Version

@CFenner CFenner added the bug Something isn't working label Dec 3, 2024
@CFenner
Copy link
Author

CFenner commented Dec 4, 2024

Here now a screenshot:

Bildschirmfoto 2024-12-04 um 20 55 15

Or maybe that's an issue of the section layout?

Bildschirmfoto 2024-12-04 um 20 56 08

@stout01
Copy link

stout01 commented Jan 10, 2025

I'm running into the same issue. I started looking into how the built-in conditional card works. It sets hidden on the hui-card element. That component also creates the hui-card element so it has it available to modify.

I'm not sure how hui-card is created for battery-state-card. We could try modifying the parent element, but I'm not sure what side effects that would have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants