matt8707 / ha-fusion

A modern, easy-to-use and performant custom Home Assistant dashboard
MIT License
2.08k stars 88 forks source link

FR: Light percentage touch slider #40

Open acl1501 opened 8 months ago

acl1501 commented 8 months ago

First of all, thank you for sharing this repo. Ever since your beautiful dashboard setup in Home Assistant, will this be the solution for me to use with my frontend/development skills.

I'd like to suggest the following: An option to slide from left to right for adjusting the light percentage when the light is on. (hold and slide on a light button?) This saves an extra click when using a tablet :)

Also, I noticed that the loader icon isn't aligned in the center. A quick fix for this is to add justify-content: center; to the.icon class.

Overall really awesome work!

matt8707 commented 8 months ago

thinking about it we really shoudn't alter the button behaviour, this should be a new type maybe twice as tall as a button with slider at the bottom like mushroom

jaburges commented 8 months ago

The bubble card incorporates the slider into the button itself (although rectangular not square) - could be a good simple button type

type: custom:bubble-card
card_type: button
button_type: slider