-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution
Description
🐛 Bug Report
When a page contains a code block with long lines (scrollable horizontally) it breaks the layout at some screen resolutions.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
- Open a tab in Chrome
- Open DevTools in it
- Toggle Device Toolbar
- Set width = 1349 (got that value from a laptop with 1366x768 screen resolution)
- Open https://v2.docusaurus.io/docs/2.0.0-alpha.69/markdown-features/
- The layout issue happens (check the actual behavior below for details)
- Remove all the three horizontally scrollable codeblocks (using DevTools > Elements)
- The layout issue is gone and everything looks good
Expected behavior
The layout is ok.
Actual Behavior
The layout is not ok:
- Page width > screen width (scrollable on x axis)
- Sidebar collapse button moves up when scrolling the page down
Your Environment
- Docusaurus version used: 2.0.0-alpha.69
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chrome/Opera/FF
- Operating system and version (desktop or mobile): Desktop
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution
