JonahKr / power-distribution-card

A Lovelace Card for visualizing power distributions.
MIT License
219 stars 13 forks source link

Fixing Mobile View #4

Closed JonahKr closed 4 years ago

JonahKr commented 4 years ago

In the mobile view, The hardcoded sized of the grid lead to a Corrupted rendering of the card. This can be fixed by using variable sizing of elements.

JonahKr commented 4 years ago

This was kinda fixed with https://github.com/JonahKr/e3dc-power-card/commit/e9287238ae4db70ae4ace2c068911986084b4cee However for really small displays (android and ios app), some adjustments still have to be made.

JonahKr commented 4 years ago

d7a4df9e6153e4ece7ae04f47aeba20ba9029482 fixed this down to 440px using flex boxes... A media query with layout changes is planned

JonahKr commented 4 years ago

With https://github.com/JonahKr/power-distribution-card/commit/53571e5b2e5b877af6e1e13b3334c1b008954570 A new mobielviewport was introduced and it was decided to not support this card for any width smaller than 350px for the forseeable future. This was introduced in Version 1.4