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

add sticky toc #2445

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

eolesinski
Copy link
Contributor

This PR adds a sticky toc to the Distill template as mentioned in #1961

Changes:

  • adds sticky toc
  • reduces separator line width (for better fit)

@alshedivat
Copy link
Owner

thanks for adding this feature. the only issue I noticed is that transparent background of the sticky toc doesn't look good when the toc bloc starts overlapping with other objects on the page. also, this won't work on mobile well. could you think of a way to fix these issues?

Screenshot 2024-05-27 at 1 01 07 PM Screenshot 2024-05-27 at 1 00 27 PM

@alshedivat alshedivat self-requested a review May 27, 2024 17:03
Copy link
Owner

@alshedivat alshedivat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above comment about the stylistic issues. these need to be fixed before we can merge this PR. thank you.

@eolesinski
Copy link
Contributor Author

@alshedivat great point - thanks for the feedback. I'll take a look.

@george-gca
Copy link
Collaborator

How did you envision this collapsible toc in this case? Where and how it would appear on mobile? I tend to think that just hiding the toc would be a good use, since the mobile screen is too small to fit both the toc and the contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants