facebook / facebook/docusaurus
Trim whitespace on higher resolutions
- Dominant language
- TypeScript
- Stars
- 66.2k
- Forks
- 10k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 52
Description
## 💥 Proposal
(First of all, I'm not designer, so please take my opinions for what they are - the opinions of a single consumer)
When looking at documentation, there is a large swath of extraneous whitespace between the left hand ToC and the content which is not present on the right hand side.

This is the `margin` added the the `container`.

Notice how it almost hugs the ToC on the right hand side.
Reducing the size of the window makes the left hand side also hug, which IMO looks better

That also more closely resembles Docusarus v1, FWIW

This looks extra weird when the entries in the ToC break due to not enough room when there's a bunch of (IMO) wasted space on the left

(example from https://jestjs.netlify.app/docs/api)
---
My suggestion is to cut most of the `margin` on the left side of the container. Short and sweet! 😀
(while I'm at it - any particular reason why left side ToC is flush on the left, but right hand ToC is flush to the content? Looks unbalanced IMO)
### Have you read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md#reporting-new-issues)?
Yup!
Contributor guide
Assessment
This issue has not been assessed yet.