-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Combination of button-card and decluttering-card causing additional empty space #28
Comments
Please share the template code also (and the button card template if any). |
Here is the decluttering template
And button-card template:
|
Thanks. The width of the decluttering-card is defined by the parent horizontal-stack (automatically, it's a flexbox) but you have set the width and height of the button-card in pixels. Instead replace your width and height of the button-card with |
You can add invisible buttons on the left (like 2 for eg) to reduce the overall size:
setting width and height should be only used in very specific case as it completely breaks when used with different devices. That's why aspect_ratio was introduced as it respects how lovelace works |
Bingo! Thank you for the explanation. I thought earlier behavior was due to combination of both cards. I will update all other button-cards with the same aspect_ratio.
|
Text never scales automatically but there are some tricks that you can use: Welcome to the amazing (or not) world of web development 😉 |
oh, no. Its CSS. Run Forrest Run.. :) |
I just ran against this myself. I've added CSS Card Mod via HACS and then just floated the button as needed. ex:
|
Checklist:
Release with the issue:
0.6.3
Last working release (if known):
N/A
Browser and Operating System:
Description of problem:
When I use decluttering-card with button-card and it causes additional space after each button.
If I use only button-card then no issues.
Javascript errors shown in the web inspector (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: