I am having two tables that each takes up 50% of the screen, both looks like exactly the same. Each table contains three columns, The first column does not have explicit width, which takes up all the available space. The other two columns have fixed width no matter in what screen size. I want the content of the third column to be wrapped.
I tried to use a grid to construct a table like this:
display: grid;
grid-template-columns: auto 80px 60px;
And I use a flex at the first column like this:
display: flex;
align-items: center;
flex-grow: 1;
flex-wrap: wrap;
This code works well if the content of the first column does not overflow, however the content will overflow if the content of the first column is too long (probably because flex-wrap would not work without explicit width, but I need the first column (without explicit width), with its content wrapped, to fill the remaining space).
I'm wondering, if this should be achieved with a flex/table/grid, and how to handle the first column (is that even possible?) with css.
Here is two images of the tables in different screen (first smaller screen, second larger screen)

