AmoebeLabs / flex-horseshoe-card

Flexible Horseshoe card for Home Assistant Lovelace UI. A card with a flexible layout, a horseshoe-like donut graph, multiple entities or attributes, graphics and animations!
258 stars 41 forks source link

Add capability to set size or ratio of card #60

Open fgonza2 opened 1 year ago

fgonza2 commented 1 year ago

is there a way to set the size or ratio horizontal vs. vertical dimensions so, when put in a horizontal stack with others you can control how tall/wide it is to match the others ?

AmoebeLabs commented 1 year ago

The ratio can not be set: it is square by default.

In a horizontal stack, the height adjusts to the width available in the stack, so depends on the other cards in the horizontal stack.

If these other cards change their size if you make the window smaller/larger, the horseshoe is also adjusted. So that makes it a bit difficult to have even sizes.

If the other card - like the button card or swiss army knife - has a ratio, you can get even heights.