Is it possible to force inner element (div.-not-assignable-) to fit the whole content of div.item-wrapper. The style -not-assignable- can't be defined/changed (if there is no solution will use React.clone to assign a proper style in order to solve the issue - just curious about a pure CSS solution).
.container {
display: flex;
border: 1px solid orange;
height: 50px;
}
.item-wrapper {
display: flex;
min-width: 100%;
border: 1px solid green;
}
<div class="container">
<div class="item-wrapper">
<div style="border: 1px solid red;" class="-not-assignable-">Div</div>
</div>
</div>