mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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;
|
||||
}
|
||||
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user