Fix map sizing in grids and h-stacks (#15290)

* Fix map sizing in grids and h-stacks

* ha-card as a flexbox
This commit is contained in:
karwosts 2023-02-20 11:41:26 -08:00 committed by GitHub
parent 76f90e1449
commit fbf084bf00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,6 +255,8 @@ class HuiMapCard extends LitElement implements LovelaceCard {
return;
}
root.style.height = "auto";
const ratio = parseAspectRatio(this._config.aspect_ratio);
root.style.paddingBottom =
@ -368,6 +370,8 @@ class HuiMapCard extends LitElement implements LovelaceCard {
overflow: hidden;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
ha-map {