Giter Site home page Giter Site logo

Comments (4)

pwbriggs avatar pwbriggs commented on April 27, 2024 1

@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.

pwbriggs avatar pwbriggs commented on April 27, 2024

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.

hasanahbd avatar hasanahbd commented on April 27, 2024

Thanks.
Your screen cast is not playing

from reactjs.org.

rickhanlonii avatar rickhanlonii commented on April 27, 2024

Yeah @pwbriggs is right, you can see yourself by resizing the browser window.

from reactjs.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.