-
Notifications
You must be signed in to change notification settings - Fork 79
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
Remove column truncation #124
Remove column truncation #124
Conversation
Column names were hidden when there were many columns
Interestingly, once the column names do not collapse it looks like the number of columns displayed is limited, but not the column names. As seen here: But this also seems a bit out of scope for this PR perhaps... The issue seems to be that the value that value that |
@@ -481,9 +481,8 @@ | |||
:title (if (or (string? k) (keyword? k)) (name k) (str k))} | |||
[:div.inline-flex | |||
;; Truncate to available col width without growing the table | |||
[:div.table.table-fixed.w-full.flex-auto | |||
{:style {:margin-left -12}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the check for `sort-key` should have been around the clause rendering a up or down arrow.
Problem
When there are a lot of columns in a table rendered using the
nextjournal.clerk.sci-viewer/table-viewer
, the column names are truncated:This makes the exploration of datasets with many columns very difficult.
(One) Solution
One fix seems to be to remove the tailwind
truncate
class that is being used on the markup for the table, and to modify the CSS slightly to layout the value so it is lined up against the edge of the column name:This way of handling things mimics how, for example, Pandas dataframes are rendered in a python notebook: