How to make this card useable for mobile #149
reidprichard
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Did you make any progress on this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beautiful card, but I was frustrated that it made the dashboard unusable on my phone, as the slider would intercept my attempts to scroll. As I was in the process of replacing all of my slider-button-cards with slider-entity-rows, I figured out this solution. Maybe this is obvious to someone with more web development experience than myself, but I hope it helps someone else.
All you need is to add CSS telling the browser to interpret vertical swipes as scrolling:
This solution isn't perfect, as the card visually reacts to a swipe as if you had tapped it (e.g., the slider moves, but your lights don't change). I'll post back if/when I figure that out.
Beta Was this translation helpful? Give feedback.
All reactions