Closed SeLLeRoNe closed 5 years ago
Can you try to replicate this with the minimal config? This is just too much to work with. Preferably with the demo sensor platform
configuration.yaml
sensor:
- platform: demo
Also test if it is just with your dark theme.
@SeLLeRoNe can you add the group
option to true
as suggested by @kalkih here https://github.com/kalkih/mini-graph-card/issues/50#issuecomment-474512958
The group option will not work well in this case, since the names will probably be cut off by the border-radius without any paddings.
Are the configs the same? except the wrapping of the mini-graph-cards? What do you have box-shadow and border-radius set to in your theme?
Hi guys, thanks for the time and effort you're both putting in place to help me :) I do appreciate that!
@kalkih I did open this issue here because without the template card it doesn't show that error, everything is wrapped inside a vertical-in-stack-card
As soon as I remove the template card everything works fine, and in all the configurations group is set to false, to be honest I didn't even think it could still have been the mini-graph-card
With group: true on everyuthing it is kinda messy ^^
Theme-wise I have this:
# Round corner + Box Shadown
ha-card-border-radius: '20px'
ha-card-box-shadow: 3px 3px rgba(0,0,0,0.4)
And you're right, the last one is not noticeable because they are overlying one on the other, in fact I can notice the "top" one
Haha, yes, that looks hideous 😆
Theme-wise I have this:
Hmm, with this theme setup I would have thought that the box-shadow would show up on the cards of both of your example configs. 🤔
Is it possible that the vertical-stack-in-card disables the box-shadow of its direct child nodes, and when wrapping the graphs inside the template card they are no longer direct children in the dom and the box-shadow is not removed? Just a thought.
Well, I did notify the dev of vertical-stack-in-card 10 days ago (https://github.com/custom-cards/vertical-stack-in-card/issues/53#issuecomment-473573504) because those shadow and theme configs weren't working, so he released an update to fix this... How he fixed I don't know, but before those weren't applied on vertical-in-stack-card
Now, those works, and it was working with group: false and everything (as per screenshot), but as soon as I added the template card they started to act weird :)
And as you can see, no config changes in place, literally just put each graph inside the template card :)
After looking at the code of the vertical-stack-in-card
, this seems to be the reason behind this box-shadow behavior:
Is it possible that the vertical-stack-in-card disables the box-shadow of its direct child nodes, and when wrapping the graphs inside the template card they are no longer direct children in the dom and the box-shadow is not removed? Just a thought.
So what should I do (if I can actually do something)?
Not really sure actually, don't think there's an elegant solution. Maybe with the help of card modder to override the box-shadow.
Well, I had to remove the icon for the name lenght issue, so there is no real need anymore to use the template plugin on this ^^
Thanks for your time guys :)
Andrea
I am also using vertical-stack-in-card with bar-card and every time data is refreshed in my card borders are back, so it is looking fine only on first load of the card.
If I use replace config-template-card with any other card type it is working fine, so it must be something that config-template-card is doing to return back borders.
Any idea how to remove borders permanently, tried setting style but didn't helped?
Here the requested example: With the problem:
Without the problem:
Screenshot with the problem:
Screenshot without the problem:
Let me know if you need further info :)