-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
fill_container property not working when used in a template #72
Comments
Why an issue related to some other custom card is posted in this repo? |
I was under the assumption that the 'fill_container' property was part of the default HA lovelace cards. |
No, this is definitely an option of your custom card.
Mushroom card is just SOME card which may be placed into the decluttering card.
|
Just wanted to chime in and mention that this is a bit of a stalemate issue now. decluttering-card points towards mushroom card, and the other way around: piitaya/lovelace-mushroom#1133 which is not super productive. Does anybody perhaps have any pointers how to fix this (with card-mod is fine if needed). I've tried setting the - type: "custom:decluttering-card"
template: trash_tile
variables:
- entity: sensor.afvalwijzer_papier
card-mod:
class: fill-container but that didn't do anything :( Thank you! |
I had the same problem, with a decluttering card in a https://github.com/thomasloven/lovelace-layout-card.
Hope this helps you too. |
Checklist:
Release with the issue:
v1.0.0
Last working release (if known):
Browser and Operating System:
View dashboard: Windows 11 / Chrome
HA Server: Home Asisstant Yellow
Description of problem:
Using the property "fill_container: true" doesn't fill the container.
Reason is most likely because the default "fill_container" property adds a class to the card that sets its height to 100%, however, with decluttering card, there is now an extra level of DOM depth, so technically it works, it's just setting it to 100% of the wrong container (namely the decluttering component, which is not taking the full height of its container)
Javascript errors shown in the web inspector (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: