Code sample results take too much space on narrow screens
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.8k
- Forks
- 7.9k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 11
Description
When I open the docs on narrow screen (Full HD in vertical mode), the containers for code results are too tall (mostly empty).
Example (https://react.dev/learn/reusing-logic-with-custom-hooks):
Note that Show less/Show more button will not fix it (it will only affect the size of code box).
Tested in:
Chrome 116.0.5845.110 (Official Build) (64-bit) on Ubuntu 20.04.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the example page at https://react.dev/learn/reusing-logic-with-custom-hooks in a narrow, vertically oriented viewport and inspect the code-result containers. The work is done when those containers no longer leave excessive empty vertical space; the Show less/Show control should not be used as the fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- documentation, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100