Implement automatic calculation of the column width when adding it #75
Replies: 2 comments 1 reply
-
Works as intended. But thanks for raising the issue of missing documentation here! When creating your theme with a custom layout, you can create a dynamic grid-template-layout. Check the following example and let me know if it makes sense:
For every hideable but shown column, we allocate a minmax(0, 1fr) grid item. In the example the first and last column are not hideable and take up a fixed space of 36px. The rest of the displayed columns take up all the remaining space evenly. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue, even after implementing what @rwieruch suggested. Then I realised I had So posting here in case someone else has the same issue. |
Beta Was this translation helpful? Give feedback.
-
2 of the five columns are hidden. When I turn on a column, my --data-table-library_grid-template-columns is updated, but the column takes a different width. And only after the page is refreshed, the included column takes that width from --data-table-library_grid-template-columns
Beta Was this translation helpful? Give feedback.
All reactions