Have a "panel" card fit to page, so it is not bigger than the screen

If you use for instance picture elements for a floor-plan, and use the “panel” setting, it resizes based on the width, so you have to scroll if the screen is to wide, or card to tall. It would be nice to have “size to fit”, so it will resize to whatever direction (horisontal or vertical) that constricts it.

Totally agree with this request.

I have floor plan and I want to be able to use them on panel and have the picture fit in the screen whatever the screen size of the device…

Currently the only way I found is to have one panel with one specific picture by screen size and ratio.

Is still still not possible? Seems like an oversight…

If anyone stumbles upon this problem, try this: Layout-card - Take control of where your cards end up - Share your Projects! / Dashboards & Frontend - Home Assistant Community

I have layout card but still can’t figure out how to make it fit screen without scrolling. any insight?