Closed ildar170975 closed 3 months ago
for this we need to discover the available room (or we could try with a height: 100%).
Tried to set a height: 100%
by card-mod yesterday.
About a possibility to style a card by card-mod - will report in Community a bit later.
Here is a seemingly stable workaround:
type: custom:mod-card
card:
type: custom:map-card
x: 10
y: 10
card_mod:
style:
map-card $: |
.type-undefined {
height: 100%;
}
div#map {
height: 100% !important;
}
.: |
map-card {
height: 100% !important;
}
ha-card {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
Thanks to @Manuel-Materazzo it's fixed in v0.6.0!
Currently a user can define a size of a card by
card_size
option. In a Panel view layout by default a card may occupy only a small part of available area:To fit a map to a view, a user has to define a value of
card_size
dependently on a particular viewport (which can be different o different clients). Suggest to add a special value forcard_size
to force the card to occupy a whole available area.