reptilex / tesla-style-solar-power-card

Home assistant power card mimicking the one tesla provides for the powerwall app.
210 stars 59 forks source link

problem with resized card #175

Open Subia75 opened 1 week ago

Subia75 commented 1 week ago

Hi I have been using the card since 2021, but I have a problem since the latest HomeAssistant Core 2024.6.x update (I think it's from 2024.6.4). when I use it inside a picture-elements and beyond a certain percentage of size in the card style, and it happens as seen in the image. card

I tried both from a PC (but it does this if I reduce it to a window beyond a certain size) and from a tablet, and depending on the size of the screen beyond a certain percentage of reduction it breaks. I've done some tests but I can't keep the card in the right square shape.

I attach the code of a simple test, on my tablet the width percentage below 20% gives me the problem of the image above

`type: picture-elements image: /local/floorplan/BGwhite.png elements:

I don't know how to fix it, what can I try?