ink-table
ink-table copied to clipboard
Provide a way to prevent table overflow
Current behaviour
When the contents of the table are more than terminal width, the rows overflow to multiple lines
when I tried to use it on this project https://github.com/slaweet/calcGithubMetrics/commit/143db89c2d5c98fdc5c66206e764f708f3175b3c
Expected behaviour
There should be a way to ensure this won't happen.
I would expect to be able to specify how wrapping should be handled - something like <Box textWrap={...} >
https://github.com/vadimdemedes/ink#wrapping
Not sure what should be the default wrapping and what other options can be provided, but the current behaviour definitely looks like a bug.
Note: I was trying to make the wrapping work with custom cell
and skeleton
props of Table
, but I wasn't successful. Please let me know if there already is a way to do this.
Hey 👋 ,
I'd be up for accepting a PR
Any update?
still open for PR 😄