Markdown card - autofit height to its dynamic content

I am using a markdown card for displaying the weather, including a paragraph with the daily forecast (from a sensor variable).
However, it is variable length (between “clear and nice” and a long text on evolving rain and storms.
On the mobile, it can fit between 1-7 lines, depending on the day.
I am using Sections dashboard, with a layout of:

grid_options:
  columns: full
  rows: 4

However:

  • If the text today is long, the forecast is cut and the next card below hides it

  • If the text today is short, there is an ugly space left (there are other cards below)

If it possible to set the markdown card to automatically adjust its height automatically based on its dynamic content?

It is surely possible (& happens) - but not in Sections.

Any pointer? I can convert that dashboard tab to something else… Thanks Ildar!

Create a new view (not Sections), add a Markdown card.
Set any content - see that a height of the card is growing correspondingly.

As for Sections - not using them, cannot help.

1 Like