Lovelace card size?

I wonder if we can specific the size of the card? for example for historical graph card, I’d like to set it to span the whole width? or just triple of the default width?

1 Like
6 Likes

perfect, thanks!

Hello, lovelace-layout-card only seems to manage the width. I can’t find a solution to increase the height of a history graph card. I wan to have more room for the graph, but the height is fixed and as I need to have many entities on the same chart, the legend takes a large part of the card.
It’s a pain to read the curves !

3 Likes

Hi,

I use a little CSS trick to have the same whole height for all colums in my design with card-mod installed, here an example:
card_mod:
style: |
ha-card {
color: white;
font-family: “Comfortaa”;
height:256px !important;
}

1 Like

Thanks, but on history graphs it only adds blank space below the chart, leaving the legend and chart area sizes unmodified.

this works well for me, except for when using google cast.show_lovelace_view (saying that type does not exist), any idea how to solve that?