Dynamic spacing between repeating group and text in line

I have 2 elements in line: repeating group (rounded icons) and text (e.g. Sequoia Capital)

What am I missing if I want the text to move on X axis dynamically based on how many icons get displayed in the repeating group?

I.e. in the second one I’d like the text start closer to the icon.