-
Notifications
You must be signed in to change notification settings - Fork 31
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
Header truncation #142
Comments
Could you provide a few examples of the current behavior and the wanted behavior :)? |
Current behavior:
Here I've chosen the column header On a wider terminal, it renders like this:
Here we have plenty of space for the full
(Aside: I'm not sure why there's padding on the left/right sides of the table...) |
Hmm. My first approach on this would be to add a "priority" to columns. Based on that priority, space is distributed to those columns with a higher priority first. It would be important to work with MinWidth constraints as soon as different priorities are used, as a single column might use the whole width otherwise. Additionally, we would need a display mode where content is just cut of if it doesn't fit into a column. |
A detailed description of the feature you would like to see added.
I'd like the ability to truncate column headers to the column width.
Explain your usecase of the requested feature
To preserve space, I'd like the column headers to not take up more space than the column contents. Therefore, I have a truncated column header. However, when there's lots of free space, this looks pretty silly! I'd like to only use the truncated column header if it's needed for space constraints.
The text was updated successfully, but these errors were encountered: