Closed B00t4me closed 7 months ago
Hi. Yes this is by design and has to do with scaling the SVG portal and viewbox. In panel mode you need to change the width to set card height in order to maintain the correct proportions and scaling. Its noted in the documentation.
card_height: | Optional | 396px | Only used when panel_mode: false. Sets the card height in pixels. Specify the value i.e. 400px or provide a sensor i.e. input.numer_height card_width: | Optional | 100% | Only used when panel_mode: true. Sets the card width in pixels or percentage 400px or 80%. For adjustments when using the Panel(1 card) view types or grid layouts
Is there an existing issue for this?
Current Behavior
When the card is in Panel mode and set the height by percentage the card does nto resize. However if I use width it does.
Steps To Reproduce
Expected behaviour
When I say card_height: 90% the card will resize to 90% of the screen available.
Card Version
3.30.0
Home Assistant Version
2024.4.3
Configuration
Relevant log output
No response