Open ildar170975 opened 3 months ago
Consider the code:
type: custom:map-card entities: - entity: zone.home card_size: 8.65
A value for card_size was defined to make the card looking square - like a stock map card:
card_size
On that picture:
card_size: 8.65
After resizing the window:
A height of ha-map card is ~452px and it seems to be constant: https://github.com/nathan-gs/ha-map-card/blob/e72bfb131835983ed9c3ee5a637da8a70d29ebb8/src/configs/MapConfig.js#L122
Is it possible to provide smth like
card_size: auto
possible value (and may be even make it a default value) to set "height = width" to get a square card? Ofc a "title is defined" case should be considered as well.
Consider the code:
A value for
card_size
was defined to make the card looking square - like a stock map card:On that picture:
card_size
;card_size: 8.65
;After resizing the window:
A height of ha-map card is ~452px and it seems to be constant: https://github.com/nathan-gs/ha-map-card/blob/e72bfb131835983ed9c3ee5a637da8a70d29ebb8/src/configs/MapConfig.js#L122
Is it possible to provide smth like
possible value (and may be even make it a default value) to set "height = width" to get a square card? Ofc a "title is defined" case should be considered as well.