How to specify column width for first column #3134
Unanswered
coreybruyere
asked this question in
General
Replies: 1 comment
-
You can target the first column with a selector. In
Set the column to whatever width works, in my example 20px. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using
useRowSelect
anduseTable
how can I specify column width for the first column so that it never exceeds the width of the checkboxes? I don't want to useuseFlex
as I want to preserve column widths based on the header width.You'll notice when the table is set to 100% width the first column starts to grow if you expand your browser window.
Here's an example:
https://codesandbox.io/s/youthful-hamilton-j0rev?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions