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] Add a button to hide/expand the page toc #278

Open
ikingye opened this issue Oct 10, 2020 · 7 comments
Open

[Feature] Add a button to hide/expand the page toc #278

ikingye opened this issue Oct 10, 2020 · 7 comments

Comments

@ikingye
Copy link

ikingye commented Oct 10, 2020

Add a button to hide/expand the page toc on the right.

@alex-shpak
Copy link
Owner

Hi!
Can you please give example for use-case? It is collapsible for mobile users, but I don't see much reason to collapse it for desktop.

@ikingye
Copy link
Author

ikingye commented Oct 13, 2020

On a screen like the 13-inch MacBookPro, because of the menu on the left and the toc on the right, the content in the middle are too narrow. If we can click to hide the toc on the right, the middle content can be wider.

@ghost
Copy link

ghost commented Jan 23, 2021

@alex-shpak Like @ikingye says, please add buttons for collapsing the left sidebar and the TOC sidebar on the right on desktop as well. On small 13 and 14 inch screen laptops, the body of the text is a bit narrow for me. Here's an example of how it messes up my table. The row elements wrap which look weird. Obviously, this problem goes away on larger screens with better resolution.

2021-01-23T21:31:56,099525047+05:30

Another reason that I can think of for doing this is enhancing the immersive experience while reading an article, somewhat similar to zen mode in popular text editors. This happens naturally on mobile but doesn't happen on desktop. Most of the time a user spends on a page will be on the body of the article rather than on the sidebar content.

@alex-shpak
Copy link
Owner

Hi!
Will see, right now I don't have a good place for such buttons to nicely put it into layout.
I plan some rework of left-top part including moving languadge switch there, so maybe after that change, but can't promise.

@MelonKony
Copy link

I would love a button like this. My site, https://millmint.net, uses Hugo Book as a platform for storytelling. A toggle for menu and toc for better readability would be fantastic.

@Phosp
Copy link

Phosp commented Mar 26, 2021

This would be nice on my sites as tables often do not fit which require me to disable the table of contents.

@nianjiang
Copy link

+1

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

No branches or pull requests

5 participants