This is an issue I’ve been struggling with on every version of lovelace since the beginning. Some cards such as vertical-stack-in card and state switch card have been completely broken without any workaround for months, and other card configurations like the below have not worked really correctly from the beginning and have required manually setting the size with browser-mod in order to get something resembling correct stacking.
Isn’t there some way we can have core check the size of the card when it renders so that every card programmer doesn’t have to do this correctly for each individual card (which it appears will not happen?)
Not entirely. Picture glance cards in portrait orientation is an example of one where it’s purely out of the box functionality that doesn’t work right.
But custom cards are a major issue, and I wonder if this shouldn’t be solved in core. I would love to see the rendering engine somehow just start rendering the card and measure it’s size and report that back to the stacking algorithm. I know I’m probably living in fantasy land, but asking each card dev to do this perfectly will never quite work right. Dare to dream?