fixed codeblocks layout with long code#4235
Closed
rahgurung wants to merge 1 commit intofacebook:masterfrom
Closed
fixed codeblocks layout with long code#4235rahgurung wants to merge 1 commit intofacebook:masterfrom
rahgurung wants to merge 1 commit intofacebook:masterfrom
Conversation
|
[V1] Deploy preview failure Built without sensitive environment variables with commit 1bf1966 https://app.netlify.com/sites/docusaurus-1/deploys/602d11146fc84400082e93e1 |
|
Size Change: +14 B (0%) Total Size: 158 kB ℹ️ View Unchanged
|
|
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 1bf1966 |
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4235--docusaurus-2.netlify.app/classic/ |
f7e1539 to
1bf1966
Compare
rahgurung
commented
Feb 17, 2021
Collaborator
|
This seems to work on https://deploy-preview-4235--docusaurus-2.netlify.app/classic/docs/2.0.0-alpha.69/markdown-features/ However, can you explain the solution? It's not clear to me why it does work, and if it's a good solution or not |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
Fixes #3870
I found a workaround to fix the layout issue. First of all, the issue was coming in case of code with long code only. I tried fixing the width to 1px and adding the style to the parent element for fixing the dark/light mode and it fixed the issue.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
It works for manually for all the pages which were broken otherwise for all versions like:
https://v2.docusaurus.io/docs/2.0.0-alpha.69/markdown-features/
https://v2.docusaurus.io/docs/next/markdown-features/react