Skip to content

Trim whitespace on higher resolutions #4347

Description

@SimenB

💥 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.

image

This is the margin added the the container.

image

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

image

That also more closely resembles Docusarus v1, FWIW

image

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

image

(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?

Yup!

Metadata

Metadata

Assignees

No one assigned

    Labels

    better engineeringNot a bug or feature requestdomain: themeRelated to the default theme components

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions