Hypfer / lovelace-valetudo-map-card

Display the map from a valetudo-enabled robot in a home assistant dashboard card.
MIT License
243 stars 36 forks source link

Allow to scroll overflow-x when necessary #128

Closed lukashass closed 1 year ago

lukashass commented 1 year ago

Improves UX for narrow screens

Hypfer commented 1 year ago

What is a "narrow screen"? Do you have a screenshot?

Hypfer commented 1 year ago

I see, thanks.

I do however think that a scrollbar is not a good solution to this issue. A better option would be to clamp the maximum image size to the available horizontal and vertical space.

lukashass commented 1 year ago

This only happens when map_scale > 1

So restricting the horizontal space would counteract that setting. I prefer a higher map scale to see some more details :wink:

lukashass commented 1 year ago

This only happens when map_scale > 1

That might not be entirely true, can't really test since I don't have a wider map.

Nonetheless this seems like an easy enough fix to remove when properly scaling the map later.