custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

Ability to match style of default lovelace button #829

Open shalak opened 9 months ago

shalak commented 9 months ago

Is your feature request related to a problem? Please describe. The default buttons, when rendered as squares use different padding than button-card with aspect_ratio: 1/1:

image

Without rendering as squared, and without setting aspect_ratio we get this:

image

("Novigrad" is button-card, the rest are vanilla button cards )

Describe the solution you'd like Make it easily possible, to match the padding of icon and name of the vanilla button card for squares, as well height when they are not squares.

Describe alternatives you've considered I tried using ADVANCED styling options, but with no luck

viliks commented 1 month ago

861 is the same problem. I fixed it using card mod.

card_mod:
  style: |
    :host {
      height: 100%
    }
    ha-card {
      height: 100%;
    }