marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
5.35k stars 156 forks source link

improvement: less scroll shift #1635

Closed akshayka closed 2 weeks ago

akshayka commented 2 weeks ago

This change modifies scrolling to cells to use block nearest instead of center, keeping the page as is if the element is already in view.

As a result, running shift enter, adding or deleting a cell no longer scrolls the page (unless eg the created cell is not in the viewport).

3 users have complained about our scroll being too jumpy, especially on cell run -- this addresses that feedback.

vercel[bot] commented 2 weeks ago

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 Jun 18, 2024 5:31am
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 5:31am
github-actions[bot] commented 2 weeks ago

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.6.20-dev14