Breakpoint by height?

Its a bit of an odd use case, but is there a way to do a break point container by height? I’m trying to design view, that will be used in a flex repeater and possibly as a widget for the dashboard.

As more devices get added to the flex repeater, that view will shrink in height and at some point I would like to shrink it down to a small single ‘row’ view. I think it would look cleaner than just using a table, but I’d like to still use space if the system has less devices.