nicufarmache / lovelace-big-slider-card

A card with a big slider for light entities in Home Assistant
MIT License
66 stars 11 forks source link

feat: add icon_padding setting #52

Open nielsrowinbik opened 6 months ago

nielsrowinbik commented 6 months ago

I wanted to reduce the space between the left side of the card and the icon, as wel as the space between the icon and the text, so I added a setting and figure I'd open a PR for it.

The setting takes the padding that should be kept around the icon in pixels. This is then applied to the absolutely positioned icon's left property, and we adjust the left padding around the content div (which is 72px by default) to be twice the given value plus 24 pixels for the width of the icon itself.

Edit: I just realised I didn't include a new built version, let me know if you want me to do that and I'll update the PR.

mrgrlscz commented 5 months ago

+1