-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Native Notebooks - Outline selection does not go to top #123828
Comments
(Experimental duplicate detection)
|
Couldn't find the original issue and thought that I forgot to file it but turns out it was closed. #123175 Received customer feedback (4/4) in interviews that they expected selecting a cell in the table of contents would bring the cell to the top and currently they have a hard time identifying where the cell is. (I have also struggled with this same issue, when I click on a cell in the outline I find my eyes scattering to figure out where the cell actually is) This also deviates from Jupyter behavior which is why it could be hard to adapt to |
@jrieken not sure if we want a different experience in notebook. |
Some thoughts here:
|
I'd also point out that the current behavior is quite buggy, which doesn't help. If you open this notebook and use breadcrumbs or the outline view to navigate the markdown, you'll easily run across them. I.e. sometimes the selected markdown is up off the top of the viewport (possibly because a cell is large below it), you'll also sometimes see headers getting rendered and then erased. |
This is still bothersome. And I also noticed that the scroll position for notebooks when clicking on one of the outline items is further down vertically than even regular code: I still think that when any item is clicked in a notebook outline it should be scrolled to the top as it's not likely that prior code/cells will be interesting to see in context. But barring that, the scroll position should at least be identical to that of pure code. Jupyter, Google Colab and probably others scroll the selected item to the top of the window. |
I know I filed this issue but just wanted to add this is actually why I don't use the TOC in the notebook. It doesn't actually help me find where I am in the notebook, my eyes end up scattering all over the page to find where I am anyway |
From all feedbacks above, there seem to be three issues:
Screen.Recording.2022-03-28.at.11.15.15.AM.mov |
@rebornix Thanks for the update! I can't tell in your recording if the gutter indicator is...passive or active? (I'm probably labeling that wrong) vs. I was really hoping to see "active" since there is so much more gray on the canvas and it is so delicate I don't end up seeing the gutter indicator, the blue has enough contrast to where I can see it clearly and quickly |
@claudiaregio passive colors are meant to the "passive" but you can always update the color to something stands out by tweaking |
Oh perfect, thanks! I'll go ahead and update that |
Verification steps - clicking a cell in the outline that is out of the view should reveal that cell at the top 5th of the viewport. If already in the viewport, it just focuses the cell. Same behavior as the text editor outline. |
Thanks. I think I just want to compare elementBottom to wrapperBottom here:
but I will fix in June since that will affect many reveal scenarios. |
Maybe it's not a big deal |
Steps to Reproduce:
Actual Behavior:
Cell selected ends up ~middle of the window/notebook + doesn't have any selection on the cell that was picked so it's hard to identify where it is.
Expected Behavior:
Cell to be at the top + selected mode indicator
The text was updated successfully, but these errors were encountered: