Skip to content
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

Feature: Back to top triangle on long pages #15

Open
marvin-hansen opened this issue Sep 17, 2023 · 0 comments
Open

Feature: Back to top triangle on long pages #15

marvin-hansen opened this issue Sep 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@marvin-hansen
Copy link

This one is a nice-to-have / low priority feature.

Basically, on my site I roughly have to kind of pages.

  1. Short topic specific
  2. Long documentation

The second kind tends to become really long and once you reach the bottom, it's a long scroll back to the top.

Example: https://deepcausality.com/docs/intro/

What would be ideal is this back to top triangle that jumps right back to the top of the page.

Example: The Guardian

Screenshot 2023-09-17 at 7 26 59 PM

Ideally, this triangle would appear the moment you start scrolling down. If the page isn't long enough, it never appears. Or, setting a boolean flag in the front-matter of the markdown file would be an alternative way to enable/disable the triangle as it's not always needed or wanted.

Also the text "Back to top" might be good as a tooltip that pop's up when hovering over the triangle just to conserve valuable space on mobile.

Currently, I have bypassed the problem by linking to the next page at the bottom of the current page hence this is really low priority but definitely nice to have.

@thetwopct thetwopct added the enhancement New feature or request label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants