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

Ability to match style of default lovelace button #829

Open
shalak opened this issue Feb 7, 2024 · 1 comment
Open

Ability to match style of default lovelace button #829

shalak opened this issue Feb 7, 2024 · 1 comment
Labels
FR Feature Request

Comments

@shalak
Copy link

shalak commented Feb 7, 2024

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

@shalak shalak added the FR Feature Request label Feb 7, 2024
@viliks
Copy link

viliks commented Sep 22, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants