hass-shutter-card icon indicating copy to clipboard operation
hass-shutter-card copied to clipboard

Request: Smaller or scalable graphics

Open ManCaveMedia opened this issue 4 years ago • 3 comments

Not an issue, but a request: It would be great if the shutter graphic was just a little smaller, or even scalable, so we can fit 2 next to each other in a horizontal stack. Especially on mobile, to save screen estate. Right now they are being cut off at the right side.

ManCaveMedia avatar Jun 27 '20 10:06 ManCaveMedia

Sorry, just noticed this has been requested before...

ManCaveMedia avatar Jun 27 '20 22:06 ManCaveMedia

please ask me too. I have 9 windows and with these sizes I cannot use this card. Thanks

roma777roma avatar Jul 01 '20 12:07 roma777roma

Not an issue, but a request: It would be great if the shutter graphic was just a little smaller, or even scalable, so we can fit 2 next to each other in a horizontal stack. Especially on mobile, to save screen estate. Right now they are being cut off at the right side.

ManCaveMedia, You can make the picture narrower so that it fits on the horizontal stack card, just take card-mod and adjust the CSS accordingly:

style: | ha-card { font-size: 11px !IMPORTANT; } .sc-shutter-label { font-size: 15px !IMPORTANT; } .sc-shutter-top { text-align: left !IMPORTANT; } .card-header { font-size: 20px !IMPORTANT; } .sc-shutter-selector-slide { width: 54% !IMPORTANT; } .sc-shutter-selector-picture { background-size: 100px 100% !IMPORTANT; background-repeat: no-repeat !IMPORTANT; } .sc-shutter-selector-picker { width: 54% !IMPORTANT; } type: 'custom:shutter-card'

https://community-assets.home-assistant.io/original/3X/6/3/63c8b6575ac15d9c2c4cfa07380158f1c0db602d.jpeg

thorschtn avatar Jul 19 '20 07:07 thorschtn

Feature added with Pull Request #69

Deejayfool avatar Mar 03 '23 11:03 Deejayfool