Seeking alternative ideas to replace my current solution using only CSS for one of the problems. I already have a working JS solution, but I'm interested in exploring a CSS-only approach.
https://i.sstatic.net/PQ7er.png
A) All elements here have the same width, only the quantity may vary (more or less).
B) Need the line to expand to full width and address the empty space on the left (the main challenge).
C) The text is dynamic, so the width varies constantly.
Is there a way to style the B) element to fill the available width?