Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to prevent table overflow #55

Open
slaweet opened this issue Dec 1, 2019 · 3 comments
Open

Provide a way to prevent table overflow #55

slaweet opened this issue Dec 1, 2019 · 3 comments

Comments

@slaweet
Copy link
Contributor

slaweet commented Dec 1, 2019

Current behaviour

When the contents of the table are more than terminal width, the rows overflow to multiple lines
Screenshot 2019-12-01 at 08 32 05
when I tried to use it on this project slaweet/calcGithubMetrics@143db89

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.

@maticzav
Copy link
Owner

maticzav commented Nov 6, 2020

Hey 👋 ,

I'd be up for accepting a PR

@Salman-Arshad
Copy link

Any update?

@maticzav
Copy link
Owner

still open for PR 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants