Open ChristophCaina opened 1 week ago
Saw the same thing, there should be an option for adaptive height or something like that. Because different zoom level in the browser or even the mobile app have all slightly different heights you cannot hardcode the correct height.
With HomeAssistant 2024.7.x a new Layout-Option for cards will be implemented. This option does allow to define, what size a card should have.
This can be implemented in UI or via YAML:
UI Option for different cards:![image](https://github.com/kalkih/mini-graph-card/assets/26391061/e25f4a8a-4510-46d9-be0e-0b26535098ef)
same card, yaml-code:
I've used the yaml option for the mini-graph-card as well - and it is working
But having the gauge and the mini-graph-card placed by each other, it is visible, that the graph card is slightly bigger than the gauge:
This screenshot is showing the same configuration - in the first row, both cards are placed inside a horizontal-stack card, In the row below, they are using the new layout option inside a section.![image](https://github.com/kalkih/mini-graph-card/assets/26391061/41e0e3f2-a16a-479e-ae48-ff68fb853674)