Open
Description
Proposal
When going through the documentation website and going to the source code from there, the code blocks that appear on the next page have a scrollbar at the bottom if the code is too long to fit inside the code block. While this may be okay on narrower screens, on wider screens still having a narrow code block leads to a poorer experience, because we need to constantly go to the bottom of the page to adjust the scrollbar of the code block. Please see the attached screenshot of this doc page with the scrollbar highlighted on Google Chrome. My proposal is to set the width of these code blocks adaptively based on the window width of the browser.
Motivation
No response
Pitch
No response
Alternatives
No response
Additional context
No response
Checklist
- I have checked that there is no similar issue in the repo