dendron
dendron copied to clipboard
Viewing header links scrolls past the header text
Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)
- [ ] Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
- [ ] Lookup. Dendron's Lookup Command
- [ ] Views. Dendron Preview, Tree View, Side Panels in the UI
- [ ] Schema. Dendron Schemas
- [ ] Pod. Data import from / export to Dendron
- [x] Publish. External Site Publish
- [ ] Markdown. Markdown features, such as syntax support and features
Describe the bug
Clicking on the header link on the dendron published site will scroll past the text. If I share a link to this header link / anchor, then it will do the same thing and scroll past. Also, clicking the header link in the sidebar on the right has a wonky animation. The little circle/dot doesn't animate properly / hop directly to the next header. It bounces back. But the sidebar highlights properly. I think the logic could be refactored to use the same / similar code for both of these.
To Reproduce
Steps to reproduce the behavior:
- Go to dendron main site
- Click the link to the left of "Motivation" or any other header, and you will see it scrolls past.
Expected behavior
It should scroll down but keep the text in view. Or just jump immediately to the text with no animation. Either is fine, but it should show the text at the top / be obvious what section is "highlighted" / being viewed.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information)
- OS: [e.g. iOS]
- Browser (if with published websites; include version): [e.g. chrome, safari]
- Versions (all that apply to bug):
- Dendron Extension:
- VS Code version:
- Dendron CLI:
Additional context
If you use the sidebar on the right hand side, and click the headers in that way, it actually scrolls properly. If using this animation, I think the code should be refactored to use the same logic for clicking on the sidebar or directly on the header link.
Dendron Log file
Please attach the output of > Dendron:Dev: Open Logs here
thanks, can reproduce. will add to our publishing backlog!