bhuebschen / fab-card

The FAB Card is a custom Lovelace card for Home Assistant that allows you to place a floating action-button.
MIT License
5 stars 0 forks source link

Ability to adjust position of card #3

Open dnestico opened 2 months ago

dnestico commented 2 months ago

I am trying to adjust the bottom positon of the card to give it some padding so it won't overlay itself on top of my custom navbar card but I can't get the card-mod CSS to work. It would be nice if positioning or bottom-padding was just a native feature instead.

My code:

type: custom:fab-card
icon: mdi:play-box-multiple
action:
  action: navigate
  navigation_path: '#events'
card_mod:
  style: |
    ha-card div.fab {
      bottom: 5em !important;
    }
Screenshot 2024-08-15 at 4 43 56 PM
Mastiffen commented 2 months ago

I would love to be able to adjust it too, so I can have more than one of these buttons on a page.

shaiger commented 2 weeks ago

+1 here for this feature! I have the humble desire of placing a single button, yet at the center-bottom :)