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

Table of Contents not visible in blog with viewports less than 960px in width #5975 #6084

Closed
4 tasks done
LandonTClipp opened this issue Sep 25, 2023 · 4 comments
Closed
4 tasks done
Labels
not feasible Issue requests something impracticable

Comments

@LandonTClipp
Copy link
Sponsor

Context

No response

Bug description

In the official Blog Support Just Landed blog post, you can see when the viewport is less than 960 pixels in width, there is no way to view the TOC for the post itself.

Screenshot 2023-09-25 at 5 20 17 PM

Attached is a minimal reproducible example using this repo.

Related links

Reproduction

9.4.2-blog-toc-missing.zip

Steps to reproduce

  1. Create new blog
  2. Create a single post with a couple of markdown sections. Add categories to the post.
  3. View the post in the browser. Reduce viewport to <960px
  4. Observe there is no TOC for the post itself, and no way to drill down into the TOC as is typical with non-blog pages.

Browser

No response

Before submitting

@squidfunk
Copy link
Owner

squidfunk commented Sep 26, 2023

Thanks for sharing. As noted in #5975, it's a current design limitation, as there's no active page that we can use to attach the table of contents to in the sidebar, but we'll check if we can make it happen.

@squidfunk squidfunk added bug Issue reports a bug needs investigation Issue must be investigated by the maintainers and removed bug Issue reports a bug labels Sep 26, 2023
@LandonTClipp
Copy link
Sponsor Author

I was thinking about this the other day. My view on this is that it would be sufficient if the sidebar noted here in the screenshot first contained a TOC of the current post being viewed, and below the TOC would be the blog categories. People are going to be interacting with the TOC far more than the blog categories so it would make sense to prioritize that in the sidebar view.

@squidfunk
Copy link
Owner

I agree, but as said, it's not simple given how navigation works. It is exceptionally tricky.

@squidfunk
Copy link
Owner

squidfunk commented May 3, 2024

We've invested time investigating this problem and are currently not considering trying to fix it at this point in time. The reason is that we would need to add exceptions to the way navigation is handled, which is basically all-CSS. We've learned a lot in the last 7 years since we adopted the current navigation, and will revise it when we do the next face lift, which we're planning to do later this year. I can't put an estimate on it, given how many other things we currently need to do, but it will happen. In this instance, we'll also revisit this problem.

Until then, we're closing it as won't fix, but as said, it might be fixable with a major redesign.

@squidfunk squidfunk closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
@squidfunk squidfunk added not feasible Issue requests something impracticable and removed needs investigation Issue must be investigated by the maintainers labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not feasible Issue requests something impracticable
Projects
None yet
Development

No branches or pull requests

2 participants