piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.71k stars 340 forks source link

[Bug]: Conditional chips will all hidden cause little space issues between cards #1148

Open igorsantos07 opened 1 year ago

igorsantos07 commented 1 year ago

Requirements

Current Behavior

If you have a chip card where all chips are conditional and end up hidden, depending on the dashboard theme you're using you get different spacing issues between the cards.

Here's the default HA theme (cards have another theme, which should not affect since they're all with the same theme): image

Here's with one of the Metrology themes: image

If I delete the offending chips card from DevTools, these gaps normalize.

Expected Behavior

It shouldn't affect neighborhooding cards if it has no chips to display.

Steps To Reproduce

  1. add a chips card to the top of a masonry dashboard
  2. add a conditional chip to it which is off
  3. add another card below
  4. add enough cards you end up with a second column
  5. notice the gap at the top of the columns

Context

No response

Environment

- Browser: Chrome
- HA Version: 2023.5.4
- Mushroom: 2.7.1

Anything else?

No response

Stooovie commented 3 months ago

Yep, same.