Having some trouble to make a nested div shrink in a flex scenario.
It's a simplification of Material-UI chips, the idea is the chips to shrink their text when a line is full.
A simplified div structure looks like (we want the inner span to shrink) :
<div class="papa">
<div class="child child1">Fixed-<span class="span">This is a long text that we want to shrink with ellipsis</span>-End</div>
<div class="child child2">Fixed-<span class="span">This is a long text that we want to shrink with ellipsis</span>-End</div>
<div class="child child3">Fixed-<span class="span">This is a long text that we want to shrink with ellipsis</span>-End</div>
</div>
How to make the inner span to shrink when there is no avaible space ?
Code example :