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

fix(v2): remove horizontal scroll on docs page #2582

Merged
merged 1 commit into from
Apr 11, 2020
Merged

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Apr 11, 2020

Motivation

Resolve #2548

This PR solves the horizontal scroll issue not only for tablets in landscape orientation, but in general for all screens.
The bottom line is that we limit the width of the container with docs content on screens from 997px to 1320 px (this is the maximum width when scrolling appears), so this change does not affect large screens.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

I tested on different generations of the iPad (6th, 7th) using BrowserStack and also some tablets on Android. Basically, just go to the docs page with "large" content (https://v2.docusaurus.io/docs/next/markdown-features/) and through devtools manually change the page size - horizontal scrolling should not be.

Initial issue:

Before:

image

After:

image

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111 lex111 added the pr: bug fix This PR fixes a bug in a past release. label Apr 11, 2020
@lex111 lex111 added this to the v2.0.0-alpha.51 milestone Apr 11, 2020
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 11, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit a4695f5

https://deploy-preview-2582--docusaurus-2.netlify.com

@yangshun yangshun merged commit d531735 into master Apr 11, 2020
@lex111 lex111 deleted the lex111/iss2548 branch April 12, 2020 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Codeblocks breaking layout on iPads (horizontal scrolling)
4 participants