bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
261 stars 35 forks source link

card is cutting off the inner cards (mushroom theme) #52

Open MichelEhmen opened 2 years ago

MichelEhmen commented 2 years ago

I am using a vertical card stack and the mushroom theme. Sadly the swipe-card is cutting off my inner cards. Is there any solution to increase the distance inside the wrapper?

image
ildar170975 commented 2 years ago

Same reason: https://github.com/bramkragten/swipe-card/issues/51

cloudbr34k84 commented 2 years ago

same here image

Marquo1 commented 1 year ago

Hi, I got it to work using card mod on one of the cards inside the swipe-card (so, in your case it could be "Tag" card).

card_mod:
      style: |
        ha-card {
          margin-bottom: 5px;
        }

The swipe card remains the same size, just the cards in it are a bit smaller. It's almost impossible to notice unless you know about it. To keep the gap below consistent with the rest of the dashboard, you can use margin-top: -5px in the card directly below.

Can you tell which one is a swipe-card? 😁 Screenshot_20230330-182425_Home Assistant