mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
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:
parent
76f90e1449
commit
fbf084bf00
@ -255,6 +255,8 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
root.style.height = "auto";
|
||||||
|
|
||||||
const ratio = parseAspectRatio(this._config.aspect_ratio);
|
const ratio = parseAspectRatio(this._config.aspect_ratio);
|
||||||
|
|
||||||
root.style.paddingBottom =
|
root.style.paddingBottom =
|
||||||
@ -368,6 +370,8 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-map {
|
ha-map {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user