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 auto wrap for code blocks #2048

Merged
merged 1 commit into from
Nov 25, 2019

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Nov 25, 2019

Motivation

In v1, code blocks are displayed as is, without wrapping, in general, this is a very good UX, especially on mobile devices. This PR disables line wrapping instead of which scroll bar will be displayed.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Desktop:

image

Mobile:

image

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 25, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 04ea648

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

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 04ea648

https://deploy-preview-2048--docusaurus-preview.netlify.com

@endiliey endiliey added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Nov 25, 2019
@yangshun yangshun merged commit 10cd99b into facebook:master Nov 25, 2019
@endiliey
Copy link
Contributor

Hmmm. I feel that the layout is kinda unpleasant now.
image

Previously it was like this
image

endiliey added a commit that referenced this pull request Nov 30, 2019
yangshun pushed a commit that referenced this pull request Nov 30, 2019
@endiliey endiliey removed the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants