Comments (4)
@rickhanlonii maybe this is out of scope for this issue, but I think it is worth considering (as I said above) collapsing the table of contents somehow, rather than removing it. Not sure how difficult that would be to implement. It could be argued that a table of contents is possibly even more important on mobile devices (page height is greater, searching text in-page isn't as simple as just ctrl+F).
Of course, maybe something like this is already implemented and I'm missing it.
Thoughts?
from reactjs.org.
Hey there, @hasanahbd! π
I think the issue you're experiencing is due to react.dev
's responsive web design. If the browser narrower than a certain threshold, the site won't display the "On this page" section, because it would take up too much space. This makes the site work on a greater range of devices from desktop all the way to a smartphone. See the screencast below for an illustration of this.
Recording.2024-01-20.135945.mp4
In your case, decreasing the zoom is essentially making the page "wider" (though the browser displays it in a smaller space).
It is debatable whether removing the table of contents is the best choice here. A potential alternative would be to instead collapse it into a menu, like the left sidebar does on very narrow displays (see the recording above).
Hope this helps!
from reactjs.org.
Thanks.
Your screen cast is not playing
from reactjs.org.
Yeah @pwbriggs is right, you can see yourself by resizing the browser window.
from reactjs.org.
Related Issues (20)
- [Suggestion]: Add a search page (not just a modal) HOT 1
- [Mistake]: One of the examples in the docs is performing side effect in render? HOT 2
- [Bug]: Can not access the react.dev website HOT 11
- [Bug]: Issue with Sandpacks HOT 7
- Add language switcher to the design in react.dev HOT 1
- [Suggestion]: Add example for retry with the `use` hook and an error boundary
- [Suggestion]: How to use local language search on a translation website
- [Suggestion]: Clarification on react.cache Usage in Server Requests
- [Typo]: Possible incorrect info HOT 1
- [Suggestion]: Add a new page for how to communicate between components. HOT 4
- [Suggestion]: "falsy" values not in the new documentation HOT 2
- [Bug]: sidepanel is blocking main content HOT 3
- [Suggestion]: Change the error message "Objects are not valid as a React child (found: object with keys {aaa, bbb}). If you meant to render a collection of children, use an array instead.
- [Mistake]: getVisibleTodos() does not re-run (and does not print any logs) when you type into the input to begin with! HOT 2
- δΈζζζ‘£ε·²η»uiεε½’δΊ HOT 1
- Class domain layer HOT 5
- Renren_kim86
- te.react.dev Maintainer's Issue HOT 3
- [Bug]: Search functionality not working correctly on react.dev in Safari on iOS real device (iPhone 12 Pro) HOT 4
- [Bug]: Search functionality not working correctly on react.dev in Safari on iOS real device (iPhone 12 Pro) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactjs.org.