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): make code blocks scrollable #2241

Merged
merged 3 commits into from
Feb 8, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Jan 23, 2020

Motivation

My second attempt to disable wrapping on code blocks! 😄

Based on the yangshun/code-block branch (I did not wait for an answer and decided to deal with this issue myself).

See #2048, #2056 (current PR uses changes from these PRs) to understand the context.

And as a bonus this PR also resolves #2223.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

On the desktop there should be no UI changes, but in the case of mobiles, the code blocks should become scollable. Although if the file contains long lines of code, then the scroll will be on the desktop, of course.

@lex111 lex111 requested a review from yangshun January 23, 2020 23:46
@lex111 lex111 requested a review from wgao19 as a code owner January 23, 2020 23:46
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jan 23, 2020
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Jan 23, 2020

Deploy preview for docusaurus-2 ready!

Built with commit 630ae6f

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

@lex111 lex111 added the pr: bug fix This PR fixes a bug in a past release. label Jan 24, 2020
@lex111
Copy link
Contributor Author

lex111 commented Jan 25, 2020

@yangshun please review on this weekend. I wanted to resolve this issue as quickly as possible.

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wonderful, I'm so happy you succeeded in making it work. Thank you so much @lex111!

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.

Document directory structure goes to the bottom (v2 only)
4 participants