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

Less narrow pages when TOC is disabled #183

Open
helins opened this issue Sep 9, 2021 · 2 comments
Open

Less narrow pages when TOC is disabled #183

helins opened this issue Sep 9, 2021 · 2 comments
Labels

Comments

@helins
Copy link
Member

helins commented Sep 9, 2021

Overall pages are very narrow. Could we make them larger at least when TOC is disabled?

Otherwise actual code examples are hard to follow because of X scrolling:

Screenshot from 2021-09-09 10-20-04

@pedrorgirardi
Copy link
Collaborator

Good idea!

@helins
Copy link
Member Author

helins commented Sep 9, 2021

I think there is a slight problem with the width of TOC. First picture is fine, second one is all squashed.

Part of the solution is probably TOC being completely separate from the page itself with a min-width, and disappearing when screen width becomes too small.

The most important is that the page shouldn't be too narrow, even with TOC. TOC is more of a bonus, available only if screen width allow. If there is not enough room for it, it's best to simply hide it.

Screenshot from 2021-09-09 14-06-21
Screenshot from 2021-09-09 14-06-26

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

No branches or pull requests

2 participants