marimo icon indicating copy to clipboard operation
marimo copied to clipboard

feat: resizable cols table

Open Light2Dark opened this issue 7 months ago • 1 comments

📝 Summary

https://github.com/user-attachments/assets/9e6695fb-5757-4449-b44e-b809d7eafae6

Works quite smooth for small tables but still not very performant for large datasets (still investigating how to optimize 🤔)

  • resizing is also a little bit wonky with large width cols (due to maxWidth being set on tableCell

Docs:

  1. https://tanstack.com/table/v8/docs/framework/react/examples/column-resizing-performant?panel=code
  2. https://tanstack.com/table/latest/docs/guide/column-sizing#advanced-column-resizing-performance

🔍 Description of Changes

  • supports double click to set to original size

📋 Checklist

  • [X] I have read the contributor guidelines.
  • [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • [ ] I have added tests for the changes made.
  • [X] I have run the code and verified that it works as expected.

📜 Reviewers

@akshayka OR @mscolnick

Light2Dark avatar Apr 12 '25 03:04 Light2Dark

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 2:34am
marimo-storybook ❌ Failed (Inspect) Apr 14, 2025 2:34am

vercel[bot] avatar Apr 12 '25 03:04 vercel[bot]