I’m using Lovelace animated weather card which only allows me to display a forecast of a maximum of 6 hours. If I set overflow-x for the ha-card to scroll then I can happily scroll to see the other 18 hours. My problem is that I can’t achieve this with card-mod.
The background:red is taking effect but the overflow is overwritten* by the constructed stylesheet which I thinkis coming from here.
*Note: the situation is more confusing, sometimes it works, sometimes it doesn’t, sometimes it works if the Chrome Inspector is open, but not if I close it… I presume this a timing issue.
I’ve tried using :host, :host ha-card, and various other things but I just can’t find the way to do this definitively, short of forking weather-card.
I am likely not able to present any help but I am trying to find out what you want, as you state to be able to get the 18hrs but why(!) or where (!) would you need card-mod then?
I am using a adaptation of this card
EDIT: reading the post again…it is also confusing to me but that may be because of ‘me’ … what are you trying to achieve?
This is my (adapted) set of cards based on above. The first daily view allows to swipe. the hourly is just there
What I’m trying to achieve is essentially what you have in your daily forecast example: the ability to swipe to see the remaining days (or hours in my case):
Thanks for the response. The use of the class name successfully overrides the overflow property from the constructed stylesheet, but it is very weird. The card is only scrollable while I have the Chrome inspector open:
Thanks for the response. The swipe-card is interesting for other purposes, but not quite what I’m after here.
I tried installing meteofrance-weather-card but couldn’t make it display anything. (I also tried meteo-france-weather-card but the display wasn’t like yours).
Yes, but still didn’t help. I think there is something else going on here. Your suggestion of using ha-card.type-custom-weather-card successfully overwrote the overflow property, but the scrollbar only worked while the Inspector was open. As soon as I closed it, the scrollbar disappeared.
I then tried editing the weather-card.js file directly and had exactly the same experience.
I think that there is an event listener which overrides the drag action to prevent scrolling (but for some reason doesn’t do the same thing when the Inspector is open).
based on my experiments, card-mod may not be relevant. any idea where would be the right palce to ask? (I’m new here)
you ask but I had already suggested.
that would be the place to at least confirm your suspicion… and continue from there.
it does also fit your topic title