JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>
<input type="number" value="1">
</li>
<li><span>A very long text description goes here</span></li>
<li>$99.90</li>
<li>Del</li>
</ul>
SCSS
ul {
display: flex;
height: 40px;
margin: 0;
padding: 0;
width: 100%;
list-style: none;
}
ul li {
display: flex;
align-items: center;
height: 100%;
padding: 0 4px;
border-bottom: 1px solid #eee;
}
ul li:first-child {
width: 55px;
flex-shrink: 0;
}
ul li:first-child input {
width: 100%;
}
ul li:last-child {
width: 48px;
flex-shrink: 0;
}
ul li:nth-child(2) {
flex: 0 1 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0px;
}
ul li:nth-child(2) span {
max-width: 135px;
overflow: hidden;
text-overflow: ellipsis;
}
ul li:nth-child(3) {
width: 75px;
flex-shrink: 0;
}