Open epiller opened 6 years ago
You can already theme the slider by setting --ha-paper-slider-width
via themeing.
If you set it (for example) to 100px the slider will never take more than 100px, but it could still take less if there is not enough space.
Does this solve your usecase?
I'm not sure if it would solve the usecase because (I think) it would shorten the slider width globally, so all of the sliders across homeassistant would be limited to 100px?
P.S. I'd test what you suggested but I'm don't know where should I put the --ha-paper-slider-width, hence my uncertainty.
You define themes as usual:
frontend:
themes:
shortslider:
ha-paper-slider-width: '100px'
Then you can apply it on a single entity or on an entity-in-group:
homeassistanbt:
customize:
light.light_with_slider
state_card_mode: single-line
group:
group.my_lights:
theme: shortslider
Thought I'd chime in and suggest a feature I'd appreciate so much: Customizable slider size while in "single-line" mode.
Why?
My suggestion:
By the way, amazing work on the project @andrey-git