JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr>
        <td class="small">First column with text</td>
        <td class="extend">This column should fill the remaining space but should be truncated if the text is too long</td>
        <td class="small">Small column</td>
    </tr>
</table>

CSS

body{
    width:100%;
    padding:0;
    margin:0;
}
table {
    margin-top: 50px;
    width:100%;
    max-width:100%;
}
table td {
    white-space: nowrap;
}
table td:nth-child(1) {
    background-color:red;
    max-width:10%;
}
table td:nth-child(2) {
    background-color: green;
    overflow:hidden;
    max-width:400px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
table td:nth-child(3) {
    background-color: orange;
    max-width:10%;
}