-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add support/fix? for card-mod #284
Comments
Haven't explored this topic at all, honestly -- so not sure, but I can investigate. Would you mind including the card config for your nice temperature sensor example so I can use that as my test case? [Goal as I understand it is to get it to look like your second image, and I'm assuming you got it to look like that in the screenshot via browser style tweaks] |
I did use browser Inspector tools to edit element style, just like you see in the last screenshot. Configuration I used:
EDIT: Sorry, forgot to add |
Poked at this a little bit:
So, not much progress, but I can reproduce what you see. Can't yet tell if this is a bug in this card, or in card-mod. |
@peledzius Your usecase is now an example in the docs: https://github.com/dermotduffy/frigate-hass-card#using-card-mod-to-style-the-card |
@dermotduffy Thank you so much for this, works flawlessly! |
Describe the solution you'd like
Picture elements does not support customizing
padding
in style, for that you need to use card-mod But it seems this card does not supportcard-mod
yet or it does not work as suppose to.I put this configuration at the bottom of frigate-hass-card for testing purposes:
As we see in image below, this card has
<ha-card>
element, but card-mod styles does not inject declared styles. There iscard-mod
element, butstyle
is empty(filled with<!---->
)And this image below shows how it looks when it's injected in Picture Elements card
Current situation:
What's my goal with 0px padding:
Maybe there is easier way to do this that I can't think of now?
The text was updated successfully, but these errors were encountered: