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

Support resizing tables #16323

Open
krassowski opened this issue May 13, 2024 · 0 comments
Open

Support resizing tables #16323

krassowski opened this issue May 13, 2024 · 0 comments

Comments

@krassowski
Copy link
Member

Problem

The ui-components includes a simple table implemented in React and styled to follow JupyterLab theming. This table is useful in core (e.g. plugin manager) and in extensions (e.g. jupyterlab-lsp diagnostics listing, or jupyterlab-new-launcher). The table does not currently support resizing columns. Ability to resize columns would greatly improve the UX. We could even consider using this implementation for file browser.

Proposed Solution

Implement resizing. I did this in nebari-dev/jupyterlab-new-launcher#22 but I would like to merge the changes into the core..

Additional context

Making the contents of the table elide and show ellipsis at the end is tricky but doable. Alternatively, on resize we could wrap content. It is possible to implement choice of ellipsis vs wrapping on per-column basis. While nebari-dev/jupyterlab-new-launcher#22 uses wrapper elements for this, in principle we could propagate the width set on the th to td to avoid that.

@krassowski krassowski added enhancement status:Needs Triage Applied to new issues that need triage labels May 13, 2024
@JasonWeill JasonWeill removed the status:Needs Triage Applied to new issues that need triage label May 14, 2024
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

2 participants