-
Notifications
You must be signed in to change notification settings - Fork 3
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
Sticky header covers scroll targets #401
Comments
Workaround Add a user style sheet with the following content: @-moz-document url-prefix("https://observablehq.com/") {
#__next div[data-node-id], .cm-content > div {
scroll-margin-top: 52px;
scroll-margin-bottom: 52px;
}
} This also fixes the scrolling issue described in #291 (comment). Edit: Does not work for jumps from cell references to viewof cells. |
@mootari Could you attach an example video of this problem. I can't seem to reproduce it (see video clip) Screen.Recording.2022-04-18.at.11.21.19.AM.mov. |
Cobus, we fixed this recently. |
@CobusT It's fixed for search results, but still a problem for anchors:
|
This is still an issue for anchors. |
I think this has been fixed by the new implementation of the sticky headers. Please re-open if this is not the case. I cannot reproduce. |
Describe the bug
When a notebook contains edits, Observable sticks the notebook menu bar to to the top of the viewport.
This bar covers jump targets (anchors, search results) and thus several impedes navigation and orientation within a notebook.
Expected behavior
Scrolling to elements is offset by the height of the sticky bar.
Additional context
This is an longstanding problem that has likely been touched on in other issues as well.
The text was updated successfully, but these errors were encountered: