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

Support TOC to automatically move position #1664

Open
1 task done
luckwyy opened this issue Apr 11, 2024 · 1 comment
Open
1 task done

Support TOC to automatically move position #1664

luckwyy opened this issue Apr 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@luckwyy
Copy link

luckwyy commented Apr 11, 2024

Checklist

Is your feature request related to a problem? Please describe

When I open a blog on my computer, TOC (table of content) can be displayed normally on the right side of the webpage. However, if I open a blog on my phone, TOC is not displayed. If the blog is long, it is difficult to locate the desired content.

Describe the solution you'd like

If possible, I hope that when the webpage is displayed at a small screen size, the TOC can be displayed at the head of a blog post.

Describe alternatives you've considered

No response

Additional context

No response

@luckwyy luckwyy added the enhancement New feature or request label Apr 11, 2024
@huanyushi
Copy link
Contributor

This functionality is implemented on some webpages, such as Zhihu (a Chinese Q&A website). When we open it on a mobile device, its table of contents automatically appears at the top of the page. Perhaps we can refer to similar websites to see how they achieve this.

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