> more easily fit their dynamically sized container
I've done this for more simpler elements. Copilot helped me come up with a little bit of custom JS in those cases.